diff options
author | Joas Schilling <coding@schilljs.com> | 2020-04-14 18:55:41 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-04-15 08:06:51 +0200 |
commit | fd0c1a3bb234fdfeb01bb5f36b2c1183ef01bc9c (patch) | |
tree | b8447650d1fab0925a38777395d3b94fe7df1921 /tests | |
parent | 609b8aff12935ac158d60491fe7211946ed28838 (diff) | |
download | nextcloud-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.php | 6 |
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() ); } |