aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Http/Client/ClientServiceTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-06-02 16:05:35 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-07 15:38:09 +0200
commit32bfd43d2921d65198b2302a3084077eb154ecb6 (patch)
tree91773a648859b49ef91a2d4f7647f74776bf8c81 /tests/lib/Http/Client/ClientServiceTest.php
parentcc66e3bcd1afc305c121358d38be4bce03e35053 (diff)
downloadnextcloud-server-32bfd43d2921d65198b2302a3084077eb154ecb6.tar.gz
nextcloud-server-32bfd43d2921d65198b2302a3084077eb154ecb6.zip
feat(HTTPClient): Provide wrapped access to Guzzle's asyncRequest()
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Http/Client/ClientServiceTest.php')
-rw-r--r--tests/lib/Http/Client/ClientServiceTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/Http/Client/ClientServiceTest.php b/tests/lib/Http/Client/ClientServiceTest.php
index 72281a0453c..40da0a2111c 100644
--- a/tests/lib/Http/Client/ClientServiceTest.php
+++ b/tests/lib/Http/Client/ClientServiceTest.php
@@ -23,6 +23,7 @@ use OCP\ICertificateManager;
use OCP\IConfig;
use OCP\Security\IRemoteHostValidator;
use Psr\Http\Message\RequestInterface;
+use Psr\Log\LoggerInterface;
/**
* Class ClientServiceTest
@@ -41,13 +42,15 @@ class ClientServiceTest extends \Test\TestCase {
});
$remoteHostValidator = $this->createMock(IRemoteHostValidator::class);
$eventLogger = $this->createMock(IEventLogger::class);
+ $logger = $this->createMock(LoggerInterface::class);
$clientService = new ClientService(
$config,
$certificateManager,
$dnsPinMiddleware,
$remoteHostValidator,
- $eventLogger
+ $eventLogger,
+ $logger,
);
$handler = new CurlHandler();
@@ -65,7 +68,8 @@ class ClientServiceTest extends \Test\TestCase {
$config,
$certificateManager,
$guzzleClient,
- $remoteHostValidator
+ $remoteHostValidator,
+ $logger,
),
$clientService->newClient()
);