Add test to ensure public clients are asked to provide a code challenge

This commit is contained in:
sephster
2018-08-13 22:54:12 +01:00
parent 0105a20126
commit 8ab27ede39
2 changed files with 8 additions and 1 deletions

View File

@@ -148,6 +148,7 @@ class AuthorizationServerTest extends TestCase
{
$client = new ClientEntity();
$client->setRedirectUri('http://foo/bar');
$client->setIsConfidential();
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
$clientRepositoryMock->method('getClientEntity')->willReturn($client);