From c7a86475c2d2f77e84ac3375592cefb0c2ad924b Mon Sep 17 00:00:00 2001 From: Christian Scheb Date: Sat, 15 Feb 2020 13:44:08 +0100 Subject: [PATCH] Add missing type hints, fix method name --- .../RememberMe/RememberMeServicesDecoratorTest.php | 4 ++-- .../TwoFactor/Trusted/TrustedCookieResponseListenerTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Security/Authentication/RememberMe/RememberMeServicesDecoratorTest.php b/Tests/Security/Authentication/RememberMe/RememberMeServicesDecoratorTest.php index 52f7004f..7cc7032c 100644 --- a/Tests/Security/Authentication/RememberMe/RememberMeServicesDecoratorTest.php +++ b/Tests/Security/Authentication/RememberMe/RememberMeServicesDecoratorTest.php @@ -47,7 +47,7 @@ protected function setUp(): void /** * @test */ - public function loginSuccess_noATwoFactorToken_forwardCall() + public function loginSuccess_noTwoFactorToken_forwardCall(): void { $token = $this->createMock(TokenInterface::class); $this->innerRememberMeServices @@ -65,7 +65,7 @@ public function loginSuccess_noATwoFactorToken_forwardCall() /** * @test */ - public function loginSuccess_isTwoFactorToken_setRememberMeAttribute() + public function loginSuccess_isTwoFactorToken_setRememberMeAttribute(): void { $token = $this->createMock(TwoFactorTokenInterface::class); diff --git a/Tests/Security/TwoFactor/Trusted/TrustedCookieResponseListenerTest.php b/Tests/Security/TwoFactor/Trusted/TrustedCookieResponseListenerTest.php index 1b5c06c7..b495d125 100644 --- a/Tests/Security/TwoFactor/Trusted/TrustedCookieResponseListenerTest.php +++ b/Tests/Security/TwoFactor/Trusted/TrustedCookieResponseListenerTest.php @@ -69,7 +69,7 @@ private function createRequestWithHost(string $host = 'example.org'): MockObject /** * @return MockObject|FilterResponseEvent|RequestEvent */ - private function createEventWithRequest(MockObject $request) + private function createEventWithRequest(MockObject $request): MockObject { // Symfony < 4.3 if (!class_exists(RequestEvent::class)) {