Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a52d3ab
)
MDL-55548 course: update test to use waitForSecond()
author
Dan Poltawski
<dan@moodle.com>
Mon, 12 Jun 2017 09:04:01 +0000
(10:04 +0100)
committer
Dan Poltawski
<dan@moodle.com>
Mon, 12 Jun 2017 09:04:01 +0000
(10:04 +0100)
course/tests/courselib_test.php
patch
|
blob
|
blame
|
history
diff --git
a/course/tests/courselib_test.php
b/course/tests/courselib_test.php
index
c589648
..
374c508
100644
(file)
--- a/
course/tests/courselib_test.php
+++ b/
course/tests/courselib_test.php
@@
-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.