Add set confidential to clients for tests

This commit is contained in:
sephster 2018-08-13 21:21:59 +01:00
parent abef682031
commit 7f2fd7b22c
No known key found for this signature in database
GPG Key ID: 077754CA23023F4F

View File

@ -1560,6 +1560,7 @@ class AuthCodeGrantTest extends TestCase
$client = new ClientEntity();
$client->setIdentifier('foo');
$client->setRedirectUri('http://foo/bar');
$client->setIsConfidential();
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
@ -1633,6 +1634,7 @@ class AuthCodeGrantTest extends TestCase
$client = new ClientEntity();
$client->setIdentifier('foo');
$client->setRedirectUri('http://foo/bar');
$client->setIsConfidential();
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
@ -1705,6 +1707,7 @@ class AuthCodeGrantTest extends TestCase
$client = new ClientEntity();
$client->setIdentifier('foo');
$client->setRedirectUri('http://foo/bar');
$client->setIsConfidential();
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
$clientRepositoryMock->method('getClientEntity')->willReturn($client);