summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorcall-me-matt <nextcloud@matthiasheinisch.de>2021-02-22 22:57:10 +0100
committercall-me-matt <nextcloud@matthiasheinisch.de>2021-02-23 00:04:09 +0100
commit0c17c242364b93104f21d3cbbd9d9933f5910f9b (patch)
treeb9828c34d734ebb7a6876c557bd40d8b9041a28f /tests
parentea5e5ff3324c0ea19b257706e1572472687ef64a (diff)
add user agent
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Service/Social/InstagramProviderTest.php7
1 files changed, 6 insertions, 1 deletions
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
);
}