Fix main: two signup fixtures use a now-rejected password
CI / Tests (PHP 8.2) (pull_request) Successful in 52s
CI / No Debug Code (pull_request) Successful in 2s
CI / PHPStan (pull_request) Successful in 2m46s
CI / Tests (PHP 8.1) (pull_request) Successful in 54s
CI / Coding Standards (pull_request) Successful in 3m6s
CI / Tests (PHP 8.3) (pull_request) Successful in 2m49s
CI / Build Plugin Zip (pull_request) Skipped
CI / Tests (PHP 8.2) (pull_request) Successful in 52s
CI / No Debug Code (pull_request) Successful in 2s
CI / PHPStan (pull_request) Successful in 2m46s
CI / Tests (PHP 8.1) (pull_request) Successful in 54s
CI / Coding Standards (pull_request) Successful in 3m6s
CI / Tests (PHP 8.3) (pull_request) Successful in 2m49s
CI / Build Plugin Zip (pull_request) Skipped
#154 and #155 each passed on their own branch and broke on landing together. #154 added two guardian-signup tests using 'password123' as their fixture; #155 then added PasswordPolicy, which rejects exactly that. Neither branch ever saw the other's change, because #155 was cut from main before #154 merged. Both tests now use the same policy-clearing fixture as the rest of the file. The deliberate 'password123' in the rejected-passwords provider stays — that one is the point. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
@@ -738,7 +738,7 @@ class RegistrationPageTest extends TestCase
|
|||||||
public function testGuardianSignupRejectsAHalfFilledChildRatherThanDroppingIt(): void
|
public function testGuardianSignupRejectsAHalfFilledChildRatherThanDroppingIt(): void
|
||||||
{
|
{
|
||||||
$_POST = [
|
$_POST = [
|
||||||
'password' => 'password123',
|
'password' => 'thistle-marrow-42',
|
||||||
'display_name' => 'Grace',
|
'display_name' => 'Grace',
|
||||||
'us_is_guardian' => '1',
|
'us_is_guardian' => '1',
|
||||||
'children' => [
|
'children' => [
|
||||||
@@ -764,7 +764,7 @@ class RegistrationPageTest extends TestCase
|
|||||||
public function testGuardianSignupRejectsAChildWithoutAUsableBirthYear(string $submitted): void
|
public function testGuardianSignupRejectsAChildWithoutAUsableBirthYear(string $submitted): void
|
||||||
{
|
{
|
||||||
$_POST = [
|
$_POST = [
|
||||||
'password' => 'password123',
|
'password' => 'thistle-marrow-42',
|
||||||
'display_name' => 'Grace',
|
'display_name' => 'Grace',
|
||||||
'us_is_guardian' => '1',
|
'us_is_guardian' => '1',
|
||||||
'children' => [['name' => 'Ada', 'birth_year' => $submitted, 'answers' => []]],
|
'children' => [['name' => 'Ada', 'birth_year' => $submitted, 'answers' => []]],
|
||||||
|
|||||||
Reference in New Issue
Block a user