Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Oct 3, 2024
1 parent df7d3de commit 02691dc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/Middleware/AuthorizationServerMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,4 @@ public function testOAuthErrorResponseRedirectUriFragment(): void
$response->getHeader('location')[0]
);
}

public function testOAuthErrorResponseRedirectUriWithDelimiter(): void
{
$exception = OAuthServerException::invalidScope('test', 'http://foo/bar');
$response = $exception->generateHttpResponse(new Response(), true);

self::assertEquals(302, $response->getStatusCode());
self::assertEquals(
'http://foo/bar#error=invalid_scope&error_description=The+requested+scope+is+invalid%2C+unknown%2C+or+malformed&hint=Check+the+%60test%60+scope',
$response->getHeader('location')[0]
);
}
}

0 comments on commit 02691dc

Please sign in to comment.