Skip to content

Commit

Permalink
Merge pull request #270 from creative-commoners/pulls/4.0/ignore-stre…
Browse files Browse the repository at this point in the history
…ngth-in-tests

FIX Ignore project defined password strength rules in MFA unit tests
  • Loading branch information
robbieaverill authored Jul 22, 2019
2 parents 5cb2e47 + cd5b925 commit f2b1bda
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/php/Extension/AccountReset/SecurityExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ class SecurityExtensionTest extends FunctionalTest
{
protected static $fixture_file = 'SecurityExtensionTest.yml';

protected function setUp()
{
parent::setUp();

$validator = Member::password_validator();
// Do not let project code rules for password strength break these tests
if ($validator) {
$validator
->setMinLength(6)
->setMinTestScore(1);
}
}

public function testResetAccountFailsWhenAlreadyAuthenticated()
{
/** @var Member&MemberExtension $member */
Expand Down

0 comments on commit f2b1bda

Please sign in to comment.