Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Jul 3, 2019
1 parent a3209eb commit 58b4a40
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions Tests/Integration/AuthorizationServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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());

Expand All @@ -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());
Expand All @@ -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());
Expand All @@ -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());
Expand All @@ -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());
Expand All @@ -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());
Expand All @@ -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());
Expand Down

0 comments on commit 58b4a40

Please sign in to comment.