diff --git a/Tests/Integration/AuthorizationServerTest.php b/Tests/Integration/AuthorizationServerTest.php index 2f5f27fc..65934beb 100644 --- a/Tests/Integration/AuthorizationServerTest.php +++ b/Tests/Integration/AuthorizationServerTest.php @@ -774,10 +774,10 @@ public function testSuccessfulImplicitRequest(): void public function testSuccessfulImplicitRequestWithState(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'foo', - 'state' => 'quzbaz', - ]); + 'response_type' => 'token', + 'client_id' => 'foo', + 'state' => 'quzbaz', + ]); timecop_freeze(new DateTime()); @@ -803,10 +803,10 @@ public function testSuccessfulImplicitRequestWithState(): void public function testSuccessfulImplicitRequestRedirectUri(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'foo', - 'redirect_uri' => 'https://example.org/oauth2/redirect-uri', - ]); + 'response_type' => 'token', + 'client_id' => 'foo', + 'redirect_uri' => 'https://example.org/oauth2/redirect-uri', + ]); timecop_freeze(new DateTime()); @@ -831,10 +831,10 @@ public function testSuccessfulImplicitRequestRedirectUri(): void public function testImplicitRequestWithInvalidScope(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'foo', - 'scope' => 'non_existing', - ]); + 'response_type' => 'token', + 'client_id' => 'foo', + 'scope' => 'non_existing', + ]); $response = $this->handleAuthorizationRequest($request); $this->assertSame(302, $response->getStatusCode()); @@ -850,10 +850,10 @@ public function testImplicitRequestWithInvalidScope(): void public function testImplicitRequestWithInvalidRedirectUri(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'foo', - 'redirect_uri' => 'https://example.org/oauth2/other-uri', - ]); + 'response_type' => 'token', + 'client_id' => 'foo', + 'redirect_uri' => 'https://example.org/oauth2/other-uri', + ]); $response = $this->handleAuthorizationRequest($request); $this->assertSame(401, $response->getStatusCode()); @@ -867,9 +867,9 @@ public function testImplicitRequestWithInvalidRedirectUri(): void public function testDeniedImplicitRequest(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'foo', - ]); + 'response_type' => 'token', + 'client_id' => 'foo', + ]); $response = $this->handleAuthorizationRequest($request, false); $this->assertSame(302, $response->getStatusCode()); @@ -885,9 +885,9 @@ public function testDeniedImplicitRequest(): void public function testImplicitRequestWithMissingClient(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'yolo', - ]); + 'response_type' => 'token', + 'client_id' => 'yolo', + ]); $response = $this->handleAuthorizationRequest($request, false); $this->assertSame(401, $response->getStatusCode()); @@ -901,9 +901,9 @@ public function testImplicitRequestWithMissingClient(): void public function testImplicitRequestWithInactiveClient(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'baz_inactive', - ]); + 'response_type' => 'token', + 'client_id' => 'baz_inactive', + ]); $response = $this->handleAuthorizationRequest($request, false); $this->assertSame(401, $response->getStatusCode()); @@ -917,9 +917,9 @@ public function testImplicitRequestWithInactiveClient(): void public function testImplicitRequestWithRestrictedGrantClient(): void { $request = $this->createAuthorizeRequest(null, [ - 'response_type' => 'token', - 'client_id' => 'qux_restricted', - ]); + 'response_type' => 'token', + 'client_id' => 'qux_restricted', + ]); $response = $this->handleAuthorizationRequest($request, false); $this->assertSame(401, $response->getStatusCode());