summaryrefslogtreecommitdiffstats
path: root/tests/lib/Http/Client/ClientServiceTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:05:51 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:37 +0200
commit97f6410ac8561bbea2ea806bc6f23f67bef985e4 (patch)
treefe70bd92ed1f8299f5f9df22b1a0d9dff798fedb /tests/lib/Http/Client/ClientServiceTest.php
parentaa670cab14d75fe04c97c3a61fd1a1d620f78e78 (diff)
downloadnextcloud-server-97f6410ac8561bbea2ea806bc6f23f67bef985e4.tar.gz
nextcloud-server-97f6410ac8561bbea2ea806bc6f23f67bef985e4.zip
Fix getMock Http Client
Diffstat (limited to 'tests/lib/Http/Client/ClientServiceTest.php')
-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 3c406f30111..48330dc33c0 100644
--- a/tests/lib/Http/Client/ClientServiceTest.php
+++ b/tests/lib/Http/Client/ClientServiceTest.php
@@ -11,14 +11,16 @@ namespace Test\Http\Client;
use GuzzleHttp\Client as GuzzleClient;
use OC\Http\Client\Client;
use OC\Http\Client\ClientService;
+use OCP\ICertificateManager;
+use OCP\IConfig;
/**
* Class ClientServiceTest
*/
class ClientServiceTest extends \Test\TestCase {
public function testNewClient() {
- $config = $this->getMock('\OCP\IConfig');
- $certificateManager = $this->getMock('\OCP\ICertificateManager');
+ $config = $this->createMock(IConfig::class);
+ $certificateManager = $this->createMock(ICertificateManager::class);
$expected = new Client($config, $certificateManager, new GuzzleClient());
$clientService = new ClientService($config, $certificateManager);