mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Hardcode PasswordValidator config in VersionedMemberAuthenticatorTest
This commit is contained in:
parent
544b137328
commit
198b25c900
@ -46,6 +46,7 @@ class MemberAuthenticatorTest extends SapphireTest
|
|||||||
}
|
}
|
||||||
DefaultAdminService::setDefaultAdmin('admin', 'password');
|
DefaultAdminService::setDefaultAdmin('admin', 'password');
|
||||||
|
|
||||||
|
// Enforce dummy validation (this can otherwise be influenced by recipe config)
|
||||||
PasswordValidator::singleton()
|
PasswordValidator::singleton()
|
||||||
->setMinLength(0)
|
->setMinLength(0)
|
||||||
->setTestNames([]);
|
->setTestNames([]);
|
||||||
|
@ -44,6 +44,11 @@ class VersionedMemberAuthenticatorTest extends SapphireTest
|
|||||||
$this->markTestSkipped("Versioned is required");
|
$this->markTestSkipped("Versioned is required");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enforce dummy validation (this can otherwise be influenced by recipe config)
|
||||||
|
PasswordValidator::singleton()
|
||||||
|
->setMinLength(0)
|
||||||
|
->setTestNames([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function tearDown()
|
protected function tearDown()
|
||||||
|
Loading…
Reference in New Issue
Block a user