@@ -19,7 +19,7 @@ protected function setUp(): void
1919 $ repo = \Mockery::mock (IUserRecoveryCodeRepository::class);
2020 $ this ->strategy = new class ($ repo ) extends AbstractMFAChallengeStrategy {
2121 public function issueChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
22- public function verifyChallenge (User $ user , string $ code ): void {}
22+ public function verifyChallenge (User $ user , string $ code, ? Client $ client = null ): void {}
2323 public function resendChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
2424 public function exposeStorePendingState (int $ userId , bool $ remember ): void {
2525 $ this ->storePendingState ($ userId , $ remember );
@@ -93,7 +93,7 @@ public function testVerifyRecoveryCode_withMatchingCode_marksAsUsed(): void
9393
9494 $ strategy = new class ($ repo ) extends AbstractMFAChallengeStrategy {
9595 public function issueChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
96- public function verifyChallenge (User $ user , string $ code ): void {}
96+ public function verifyChallenge (User $ user , string $ code, ? Client $ client = null ): void {}
9797 public function resendChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
9898 };
9999
@@ -114,7 +114,7 @@ public function testVerifyRecoveryCode_withNonMatchingCode_throwsException(): vo
114114
115115 $ strategy = new class ($ repo ) extends AbstractMFAChallengeStrategy {
116116 public function issueChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
117- public function verifyChallenge (User $ user , string $ code ): void {}
117+ public function verifyChallenge (User $ user , string $ code, ? Client $ client = null ): void {}
118118 public function resendChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
119119 };
120120
@@ -132,7 +132,7 @@ public function testVerifyRecoveryCode_withAllCodesUsed_throwsException(): void
132132
133133 $ strategy = new class ($ repo ) extends AbstractMFAChallengeStrategy {
134134 public function issueChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
135- public function verifyChallenge (User $ user , string $ code ): void {}
135+ public function verifyChallenge (User $ user , string $ code, ? Client $ client = null ): void {}
136136 public function resendChallenge (User $ user , ?Client $ client , bool $ remember ): array { return []; }
137137 };
138138
0 commit comments