mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-55548 course: update test to use waitForSecond()
This commit is contained in:
parent
a52d3abbb6
commit
fc4e3b3cf0
@ -692,7 +692,7 @@ class core_course_courselib_testcase extends advanced_testcase {
|
||||
$oldtimemodified = $section->timemodified;
|
||||
|
||||
// Update the section.
|
||||
sleep(1); // Ensuring that the section update occurs at a different timestamp.
|
||||
$this->waitForSecond(); // Ensuring that the section update occurs at a different timestamp.
|
||||
course_update_section($course, $section, array());
|
||||
|
||||
// Check that the time has changed.
|
||||
|
Loading…
x
Reference in New Issue
Block a user