mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9722 from creative-commoners/pulls/4/fix-versioned-member-auth-tests
FIX Hardcode PasswordValidator config in VersionedMemberAuthenticatorTest
This commit is contained in:
commit
bb7cf17e3c
@ -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