FIX Hardcode PasswordValidator config in VersionedMemberAuthenticatorTest

This commit is contained in:
Garion Herman 2020-10-06 16:05:04 +13:00
parent 544b137328
commit 198b25c900
2 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class MemberAuthenticatorTest extends SapphireTest
}
DefaultAdminService::setDefaultAdmin('admin', 'password');
// Enforce dummy validation (this can otherwise be influenced by recipe config)
PasswordValidator::singleton()
->setMinLength(0)
->setTestNames([]);

View File

@ -44,6 +44,11 @@ class VersionedMemberAuthenticatorTest extends SapphireTest
$this->markTestSkipped("Versioned is required");
return;
}
// Enforce dummy validation (this can otherwise be influenced by recipe config)
PasswordValidator::singleton()
->setMinLength(0)
->setTestNames([]);
}
protected function tearDown()