mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-43557 fix assertion for course section event description
This commit is contained in:
parent
d1c7cf5376
commit
3373120f60
@ -1813,7 +1813,7 @@ class core_course_courselib_testcase extends advanced_testcase {
|
||||
$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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user