diff options
author | Joas Schilling <coding@schilljs.com> | 2023-06-02 16:05:35 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-06-27 15:53:57 +0200 |
commit | ec6728d710ad786fd4e5b762ec3835f6dcaa67b8 (patch) | |
tree | e3ec2605b3ef40292c6eb4c18a12bcabc8d0783d /tests/lib/Http/Client/ClientServiceTest.php | |
parent | 266436b76788d14e061bbe1f013bc052edc8041f (diff) | |
download | nextcloud-server-ec6728d710ad786fd4e5b762ec3835f6dcaa67b8.tar.gz nextcloud-server-ec6728d710ad786fd4e5b762ec3835f6dcaa67b8.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.php | 8 |
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() ); |