From 0c17c242364b93104f21d3cbbd9d9933f5910f9b Mon Sep 17 00:00:00 2001 From: call-me-matt Date: Mon, 22 Feb 2021 22:57:10 +0100 Subject: add user agent Signed-off-by: call-me-matt --- tests/unit/Service/Social/InstagramProviderTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/Service/Social/InstagramProviderTest.php b/tests/unit/Service/Social/InstagramProviderTest.php index 6fa0e866..1cf70ceb 100644 --- a/tests/unit/Service/Social/InstagramProviderTest.php +++ b/tests/unit/Service/Social/InstagramProviderTest.php @@ -27,6 +27,7 @@ namespace OCA\Contacts\Service\Social; use OCP\Http\Client\IClient; use OCP\Http\Client\IResponse; use OCP\Http\Client\IClientService; +use Psr\Log\LoggerInterface; use ChristophWurst\Nextcloud\Testing\TestCase; use PHPUnit\Framework\MockObject\MockObject; @@ -36,6 +37,9 @@ class InstagramProviderTest extends TestCase { /** @var IClientService|MockObject */ private $clientService; + /** @var LoggerInterface|MockObject */ + private $logger; + /** @var IClient|MockObject */ private $client; @@ -47,13 +51,14 @@ class InstagramProviderTest extends TestCase { $this->clientService = $this->createMock(IClientService::class); $this->response = $this->createMock(IResponse::class); $this->client = $this->createMock(IClient::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->clientService ->method('NewClient') ->willReturn($this->client); $this->provider = new InstagramProvider( - $this->clientService + $this->clientService, $this->logger ); } -- cgit v1.2.3