Skip to content

Commit 9278f37

Browse files
committed
tests bug fix
Signed-off-by: MarioRadu <magda_marior@yahoo.com>
1 parent 21c110e commit 9278f37

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/Unit/Admin/Handler/Account/PostAccountLoginHandlerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)