Skip to content

Commit

Permalink
test: refactor by rector
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Sep 6, 2023
1 parent ab626d5 commit f249b18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Controllers/ActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function testEmail2FAHandleInvalidEmail(): void
]);

$result->assertRedirect();
$result->assertEquals(site_url('/auth/a/show'), $result->getRedirectUrl());
$result->assertSame(site_url('/auth/a/show'), $result->getRedirectUrl());
$result->assertSessionHas('error', lang('Auth.invalidEmail'));
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/PwnedValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ public function testCheckCatchesAndRethrowsCurlExceptionAsAuthException(): void
->getMock();

$curlrequest->method('get')
->will($this->throwException(HTTPException::forCurlError(
->willThrowException(HTTPException::forCurlError(
'7',
'Failed to connect'
)));
));
Services::injectMock('curlrequest', $curlrequest);

$this->expectException(AuthenticationException::class);
Expand Down

0 comments on commit f249b18

Please sign in to comment.