mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-45654 Cron: Fix for unit test that was causing integer overflow in 32 bit php
This commit is contained in:
parent
f65427b660
commit
3f86b023ef
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ class cronlib_testcase extends basic_testcase {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
$tmpdir = realpath($CFG->tempdir);
|
$tmpdir = realpath($CFG->tempdir);
|
||||||
$time = time();
|
// This is a relative time.
|
||||||
|
$time = 0;
|
||||||
|
|
||||||
// Relative time stamps. Did you know data providers get executed during phpunit init?
|
// Relative time stamps. Did you know data providers get executed during phpunit init?
|
||||||
$lastweekstime = -(7 * 24 * 60 * 60);
|
$lastweekstime = -(7 * 24 * 60 * 60);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue