Skip to content

Commit f249b18

Browse files
committed
test: refactor by rector
1 parent ab626d5 commit f249b18

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Controllers/ActionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function testEmail2FAHandleInvalidEmail(): void
9393
]);
9494

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

tests/Unit/PwnedValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ public function testCheckCatchesAndRethrowsCurlExceptionAsAuthException(): void
122122
->getMock();
123123

124124
$curlrequest->method('get')
125-
->will($this->throwException(HTTPException::forCurlError(
125+
->willThrowException(HTTPException::forCurlError(
126126
'7',
127127
'Failed to connect'
128-
)));
128+
));
129129
Services::injectMock('curlrequest', $curlrequest);
130130

131131
$this->expectException(AuthenticationException::class);

0 commit comments

Comments
 (0)