mirror of
https://github.com/moodle/moodle.git
synced 2025-04-06 08:52:46 +02:00
MDL-61316 core: Fix session gc unit tests
This commit is contained in:
parent
cacf7546b9
commit
cf5e586d03
@ -570,12 +570,14 @@ final class manager_test extends \advanced_testcase {
|
||||
$record->timemodified = time() - 60*20;
|
||||
$r2 = $this->mockhandler->add_test_session($record);
|
||||
|
||||
// Guest session still within the session timeout limit.
|
||||
$record->sid = md5('hokus3');
|
||||
$record->userid = $guestid;
|
||||
$record->timecreated = time() - 60*60*60;
|
||||
$record->timemodified = time() - 60*20;
|
||||
$record->timemodified = time() - 60*5;
|
||||
$r3 = $this->mockhandler->add_test_session($record);
|
||||
|
||||
// Guest session outside the session timeout limit.
|
||||
$record->sid = md5('hokus4');
|
||||
$record->userid = $guestid;
|
||||
$record->timecreated = time() - 60*60*60;
|
||||
|
Loading…
x
Reference in New Issue
Block a user