mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Add setIsConfidential to client stub for tests
This commit is contained in:
parent
04807a1e2a
commit
abef682031
@ -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);
|
||||
|
||||
|
@ -14,4 +14,9 @@ class ClientEntity implements ClientEntityInterface
|
||||
{
|
||||
$this->redirectUri = $uri;
|
||||
}
|
||||
|
||||
public function setIsConfidential()
|
||||
{
|
||||
$this->isConfidential = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user