Skip to content

Commit

Permalink
MDL-43557 fix assertion for course section event description
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 30, 2014
1 parent d1c7cf5 commit 3373120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/tests/courselib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ public function test_course_section_updated_event() {
$this->assertEquals($course->id, $event->courseid);
$this->assertEquals($coursecontext->id, $event->contextid);
$this->assertEquals($section->section, $event->other['sectionnum']);
$expecteddesc = 'Course ' . $event->courseid . ' section ' . $event->other['sectionnum'] . ' updated by user ' . $event->userid;
$expecteddesc = "The user with the id '{$event->userid}' updated the section with the number '{$event->other['sectionnum']}' for the course with the id '{$event->courseid}'";
$this->assertEquals($expecteddesc, $event->get_description());
$url = new moodle_url('/course/editsection.php', array('id' => $event->objectid));
$this->assertEquals($url, $event->get_url());
Expand Down

0 comments on commit 3373120

Please sign in to comment.