diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:05:51 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:42:37 +0200 |
commit | 97f6410ac8561bbea2ea806bc6f23f67bef985e4 (patch) | |
tree | fe70bd92ed1f8299f5f9df22b1a0d9dff798fedb /tests/lib/Http/Client/ClientTest.php | |
parent | aa670cab14d75fe04c97c3a61fd1a1d620f78e78 (diff) | |
download | nextcloud-server-97f6410ac8561bbea2ea806bc6f23f67bef985e4.tar.gz nextcloud-server-97f6410ac8561bbea2ea806bc6f23f67bef985e4.zip |
Fix getMock Http Client
Diffstat (limited to 'tests/lib/Http/Client/ClientTest.php')
-rw-r--r-- | tests/lib/Http/Client/ClientTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Http/Client/ClientTest.php b/tests/lib/Http/Client/ClientTest.php index 705e1eeddea..4369eab3a54 100644 --- a/tests/lib/Http/Client/ClientTest.php +++ b/tests/lib/Http/Client/ClientTest.php @@ -10,6 +10,7 @@ namespace Test\Http\Client; use GuzzleHttp\Message\Response; use OC\Http\Client\Client; +use OCP\ICertificateManager; use OCP\IConfig; /** @@ -25,11 +26,11 @@ class ClientTest extends \Test\TestCase { public function setUp() { parent::setUp(); - $this->config = $this->getMock('\OCP\IConfig'); + $this->config = $this->createMock(IConfig::class); $this->guzzleClient = $this->getMockBuilder('\GuzzleHttp\Client') ->disableOriginalConstructor() ->getMock(); - $certificateManager = $this->getMock('\OCP\ICertificateManager'); + $certificateManager = $this->createMock(ICertificateManager::class); $this->client = new Client( $this->config, $certificateManager, |