mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: SecurityTest fails when running tests at 12am
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@58559 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a5ee9976f4
commit
7b278290b4
@ -77,7 +77,7 @@ class SecurityTest extends SapphireTest {
|
|||||||
|
|
||||||
// (We fake this by re-setting LockedOutUntil)
|
// (We fake this by re-setting LockedOutUntil)
|
||||||
$member = DataObject::get_by_id("Member", $this->idFromFixture('Member', 'test'));
|
$member = DataObject::get_by_id("Member", $this->idFromFixture('Member', 'test'));
|
||||||
$member->LockedOutUntil = date('Y-m-d h:i:s', time() - 30);
|
$member->LockedOutUntil = date('Y-m-d H:i:s', time() - 30);
|
||||||
$member->write();
|
$member->write();
|
||||||
|
|
||||||
$this->doTestLoginForm('sam@silverstripe.com' , '1nitialPassword', $session);
|
$this->doTestLoginForm('sam@silverstripe.com' , '1nitialPassword', $session);
|
||||||
|
Loading…
Reference in New Issue
Block a user