@@ -96,7 +96,7 @@ public function testInvalidLoginFormDataProvidedWillReturnRedirectResponse(): vo
9696
9797 $ this
9898 ->messenger
99- ->expects ($ this ->once ())
99+ ->expects ($ this ->atLeastOnce ())
100100 ->method ('addError ' );
101101
102102 $ handler = new PostAccountLoginHandler (
@@ -131,8 +131,8 @@ public function testInvalidPasswordProvidedWillReturnRedirectResponse(): void
131131 $ this ->authenticationAdapter ->method ('setCredential ' )->willReturn ($ this ->authenticationAdapter );
132132 $ this ->authenticationService ->method ('getAdapter ' )->willReturn ($ this ->authenticationAdapter );
133133
134- $ this ->messenger ->expects ($ this ->once ())->method ('addError ' );
135- $ this ->adminService ->expects ($ this ->once ())->method ('logAdminVisit ' );
134+ $ this ->messenger ->expects ($ this ->atLeastOnce ())->method ('addError ' );
135+ $ this ->adminService ->expects ($ this ->atLeastOnce ())->method ('logAdminVisit ' );
136136
137137 $ handler = new PostAccountLoginHandler (
138138 $ this ->adminService ,
@@ -167,13 +167,13 @@ public function testAdminInactiveWillReturnRedirectResponse(): void
167167
168168 $ this
169169 ->messenger
170- ->expects ($ this ->once ())
170+ ->expects ($ this ->atLeastOnce ())
171171 ->method ('addError ' )
172172 ->with (Message::ADMIN_INACTIVE );
173173
174174 $ this
175175 ->authenticationService
176- ->expects ($ this ->once ())
176+ ->expects ($ this ->atLeastOnce ())
177177 ->method ('clearIdentity ' );
178178
179179 $ handler = new PostAccountLoginHandler (
@@ -201,7 +201,7 @@ public function testAdminLoginThrowsExceptionWillReturnRedirectResponse(): void
201201
202202 $ this
203203 ->messenger
204- ->expects ($ this ->once ())
204+ ->expects ($ this ->atLeastOnce ())
205205 ->method ('addError ' )
206206 ->with (Message::AN_ERROR_OCCURRED );
207207
@@ -237,8 +237,8 @@ public function testAdminLoginSuccessfulWillReturnRedirectResponse(): void
237237 $ this ->authenticationAdapter ->method ('setCredential ' )->willReturn ($ this ->authenticationAdapter );
238238 $ this ->authenticationService ->method ('getAdapter ' )->willReturn ($ this ->authenticationAdapter );
239239
240- $ this ->adminService ->expects ($ this ->once ())->method ('logAdminVisit ' );
241- $ this ->storage ->expects ($ this ->once ())->method ('write ' )->with ($ this ->identity );
240+ $ this ->adminService ->expects ($ this ->atLeastOnce ())->method ('logAdminVisit ' );
241+ $ this ->storage ->expects ($ this ->atLeastOnce ())->method ('write ' )->with ($ this ->identity );
242242
243243 $ handler = new PostAccountLoginHandler (
244244 $ this ->adminService ,
0 commit comments