mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-56552_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
0579372b70
@ -56,11 +56,11 @@ class tool_mobile_api_testcase extends externallib_advanced_testcase {
|
||||
// SEt user to GMT+5.
|
||||
$USER->timezone = 5;
|
||||
|
||||
$timenow = time();
|
||||
$timenow = $this->setCurrentTimeStart();
|
||||
$key = api::get_autologin_key();
|
||||
|
||||
$key = $DB->get_record('user_private_key', array('value' => $key), '*', MUST_EXIST);
|
||||
$this->assertEquals($timenow + api::LOGIN_KEY_TTL, $key->validuntil);
|
||||
$this->assertTimeCurrent($key->validuntil - api::LOGIN_KEY_TTL);
|
||||
$this->assertEquals('0.0.0.0', $key->iprestriction);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user