mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-45357 events: unittest correction, event description change
This commit is contained in:
parent
02915dfc23
commit
88c0e2f374
@ -1814,7 +1814,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 = "The user with the id '{$event->userid}' updated the section with the number '{$event->other['sectionnum']}' for the course with the id '{$event->courseid}'";
|
||||
$expecteddesc = "The user with id '{$event->userid}' updated section number '{$event->other['sectionnum']}' for the course with 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