From fb438014582a8b42c9382355b7b14eba63985cb6 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Wed, 15 Aug 2018 21:40:41 +0100 Subject: [PATCH] Change function name to setConfidential() --- tests/AuthorizationServerTest.php | 2 +- tests/Grant/AuthCodeGrantTest.php | 4 ++-- tests/Stubs/ClientEntity.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/AuthorizationServerTest.php b/tests/AuthorizationServerTest.php index e0f45d98..7e83ee5e 100644 --- a/tests/AuthorizationServerTest.php +++ b/tests/AuthorizationServerTest.php @@ -148,7 +148,7 @@ class AuthorizationServerTest extends TestCase { $client = new ClientEntity(); $client->setRedirectUri('http://foo/bar'); - $client->setIsConfidential(); + $client->setConfidential(); $clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock(); $clientRepositoryMock->method('getClientEntity')->willReturn($client); diff --git a/tests/Grant/AuthCodeGrantTest.php b/tests/Grant/AuthCodeGrantTest.php index b0652d00..867a08d9 100644 --- a/tests/Grant/AuthCodeGrantTest.php +++ b/tests/Grant/AuthCodeGrantTest.php @@ -84,7 +84,7 @@ class AuthCodeGrantTest extends TestCase { $client = new ClientEntity(); $client->setRedirectUri('http://foo/bar'); - $client->setIsConfidential(); + $client->setConfidential(); $clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock(); $clientRepositoryMock->method('getClientEntity')->willReturn($client); @@ -124,7 +124,7 @@ class AuthCodeGrantTest extends TestCase { $client = new ClientEntity(); $client->setRedirectUri(['http://foo/bar']); - $client->setIsConfidential(); + $client->setConfidential(); $clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock(); $clientRepositoryMock->method('getClientEntity')->willReturn($client); diff --git a/tests/Stubs/ClientEntity.php b/tests/Stubs/ClientEntity.php index 9d34edb0..d908248b 100644 --- a/tests/Stubs/ClientEntity.php +++ b/tests/Stubs/ClientEntity.php @@ -15,7 +15,7 @@ class ClientEntity implements ClientEntityInterface $this->redirectUri = $uri; } - public function setIsConfidential() + public function setConfidential() { $this->isConfidential = true; }