From 198b25c9002160596a47357fd79fff2c55fdd888 Mon Sep 17 00:00:00 2001 From: Garion Herman Date: Tue, 6 Oct 2020 16:05:04 +1300 Subject: [PATCH] FIX Hardcode PasswordValidator config in VersionedMemberAuthenticatorTest --- tests/php/Security/MemberAuthenticatorTest.php | 1 + tests/php/Security/VersionedMemberAuthenticatorTest.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tests/php/Security/MemberAuthenticatorTest.php b/tests/php/Security/MemberAuthenticatorTest.php index 141d136f0..9dd6df12d 100644 --- a/tests/php/Security/MemberAuthenticatorTest.php +++ b/tests/php/Security/MemberAuthenticatorTest.php @@ -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([]); diff --git a/tests/php/Security/VersionedMemberAuthenticatorTest.php b/tests/php/Security/VersionedMemberAuthenticatorTest.php index 01fbc4238..eedbb90db 100644 --- a/tests/php/Security/VersionedMemberAuthenticatorTest.php +++ b/tests/php/Security/VersionedMemberAuthenticatorTest.php @@ -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()