File tree Expand file tree Collapse file tree
test/Unit/Admin/Handler/Account Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ public function testInvalidPasswordProvidedWillReturnRedirectResponse(): void
159159 $ this ->assertSame (StatusCodeInterface::STATUS_SEE_OTHER , $ response ->getStatusCode ());
160160 }
161161
162+ /**
163+ * @throws MockObjectException
164+ */
162165 public function testAdminInactiveWillReturnRedirectResponse (): void
163166 {
164167 $ this ->identity ->method ('getStatus ' )->willReturn (AdminStatusEnum::Inactive);
@@ -169,6 +172,7 @@ public function testAdminInactiveWillReturnRedirectResponse(): void
169172 $ this ->authenticationService ->method ('hasIdentity ' )->willReturn (false );
170173 $ this ->request ->method ('getParsedBody ' )->willReturn (['test ' ]);
171174 $ this ->request ->method ('getServerParams ' )->willReturn ([]);
175+ $ this ->request ->method ('getUri ' )->willReturn ($ this ->createMock (UriInterface::class));
172176 $ this ->loginForm ->method ('isValid ' )->willReturn (true );
173177 $ this ->loginForm ->method ('getData ' )->willReturn (['username ' => 'test ' , 'password ' => 'test ' ]);
174178 $ this ->authenticationAdapter ->method ('setIdentity ' )->willReturn ($ this ->authenticationAdapter );
You can’t perform that action at this time.
0 commit comments