diff --git a/tests/Grant/RefreshTokenGrantTest.php b/tests/Grant/RefreshTokenGrantTest.php index 4aa06da05..027731527 100644 --- a/tests/Grant/RefreshTokenGrantTest.php +++ b/tests/Grant/RefreshTokenGrantTest.php @@ -594,10 +594,10 @@ public function testRespondToRequestFinalizeScopes(): void ); $serverRequest = (new ServerRequest())->withParsedBody([ - 'client_id' => 'foo', - 'client_secret' => 'bar', - 'refresh_token' => $encryptedOldRefreshToken, - 'scope' => 'foo bar', + 'client_id' => 'foo', + 'client_secret' => 'bar', + 'refresh_token' => $encryptedOldRefreshToken, + 'scope' => 'foo bar', ]); $responseType = new StubResponseType(); @@ -694,7 +694,7 @@ public function testUnrevokedRefreshToken(): void $accessTokenEntity->setClient($client); $accessTokenRepositoryMock = $this->getMockBuilder(AccessTokenRepositoryInterface::class)->getMock(); - $accessTokenRepositoryMock->method('getNewToken')->willReturn(new AccessTokenEntity()); + $accessTokenRepositoryMock->method('getNewToken')->willReturn($accessTokenEntity); $accessTokenRepositoryMock->expects(self::once())->method('persistNewAccessToken')->willReturnSelf(); $refreshTokenRepositoryMock = $this->getMockBuilder(RefreshTokenRepositoryInterface::class)->getMock();