MDL-45654 Cron: Fix for unit test that was causing integer overflow in 32 bit php

This commit is contained in:
Damyon Wiese 2014-05-29 12:10:19 +08:00
parent f65427b660
commit 3f86b023ef

View file

@ -39,7 +39,8 @@ class cronlib_testcase extends basic_testcase {
global $CFG;
$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?
$lastweekstime = -(7 * 24 * 60 * 60);