summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-04-14 18:55:41 +0200
committerJoas Schilling <coding@schilljs.com>2020-04-15 08:06:51 +0200
commitfd0c1a3bb234fdfeb01bb5f36b2c1183ef01bc9c (patch)
treeb8447650d1fab0925a38777395d3b94fe7df1921 /tests
parent609b8aff12935ac158d60491fe7211946ed28838 (diff)
downloadnextcloud-server-fd0c1a3bb234fdfeb01bb5f36b2c1183ef01bc9c.tar.gz
nextcloud-server-fd0c1a3bb234fdfeb01bb5f36b2c1183ef01bc9c.zip
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Http/Client/ClientServiceTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Http/Client/ClientServiceTest.php b/tests/lib/Http/Client/ClientServiceTest.php
index 02f331483de..b1bc5a188ce 100644
--- a/tests/lib/Http/Client/ClientServiceTest.php
+++ b/tests/lib/Http/Client/ClientServiceTest.php
@@ -13,6 +13,7 @@ use OC\Http\Client\Client;
use OC\Http\Client\ClientService;
use OCP\ICertificateManager;
use OCP\IConfig;
+use OCP\ILogger;
/**
* Class ClientServiceTest
@@ -23,10 +24,11 @@ class ClientServiceTest extends \Test\TestCase {
$config = $this->createMock(IConfig::class);
/** @var ICertificateManager $certificateManager */
$certificateManager = $this->createMock(ICertificateManager::class);
+ $logger = $this->createMock(ILogger::class);
- $clientService = new ClientService($config, $certificateManager);
+ $clientService = new ClientService($config, $logger, $certificateManager);
$this->assertEquals(
- new Client($config, $certificateManager, new GuzzleClient()),
+ new Client($config, $logger, $certificateManager, new GuzzleClient()),
$clientService->newClient()
);
}