Add setIsConfidential to client stub for tests

This commit is contained in:
Andrew Millington 2018-08-12 20:34:58 +01:00
parent 04807a1e2a
commit abef682031
No known key found for this signature in database
GPG Key ID: 077754CA23023F4F
2 changed files with 7 additions and 1 deletions

View File

@ -540,6 +540,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);

View File

@ -14,4 +14,9 @@ class ClientEntity implements ClientEntityInterface
{
$this->redirectUri = $uri;
}
public function setIsConfidential()
{
$this->isConfidential = true;
}
}