File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
test/Unit/Admin/Handler/Account Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,9 @@ public function testAdminLoginThrowsExceptionWillReturnRedirectResponse(): void
243243 $ this ->assertSame (StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR , $ response ->getStatusCode ());
244244 }
245245
246+ /**
247+ * @throws MockObjectException
248+ */
246249 public function testAdminLoginSuccessfulWillReturnRedirectResponse (): void
247250 {
248251 $ this ->identity ->method ('isActive ' )->willReturn (true );
@@ -254,7 +257,9 @@ public function testAdminLoginSuccessfulWillReturnRedirectResponse(): void
254257 $ this ->authenticationService ->method ('getStorage ' )->willReturn ($ this ->storage );
255258 $ this ->request ->method ('getParsedBody ' )->willReturn (['test ' ]);
256259 $ this ->request ->method ('getServerParams ' )->willReturn ([]);
257- $ this ->request ->method ('getUri ' )->willReturn ('/test ' );
260+ $ this ->request ->method ('getUri ' )->willReturn (
261+ $ this ->createMock (UriInterface::class),
262+ );
258263 $ this ->loginForm ->method ('isValid ' )->willReturn (true );
259264 $ this ->loginForm ->method ('getData ' )->willReturn (['identity ' => 'test ' , 'password ' => 'test ' ]);
260265 $ this ->authenticationAdapter ->method ('setIdentity ' )->willReturn ($ this ->authenticationAdapter );
You can’t perform that action at this time.
0 commit comments