summaryrefslogtreecommitdiffstats
path: root/tests/lib/HTTPHelperTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:03:57 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:37 +0200
commitaa670cab14d75fe04c97c3a61fd1a1d620f78e78 (patch)
tree437b7a7de0fd30e9f8d98dedb6d99cd65379fba5 /tests/lib/HTTPHelperTest.php
parent28c801b3d5e226ffb474fa888fe97f94579664b2 (diff)
downloadnextcloud-server-aa670cab14d75fe04c97c3a61fd1a1d620f78e78.tar.gz
nextcloud-server-aa670cab14d75fe04c97c3a61fd1a1d620f78e78.zip
Fix getMock HTTPHelper
Diffstat (limited to 'tests/lib/HTTPHelperTest.php')
-rw-r--r--tests/lib/HTTPHelperTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/HTTPHelperTest.php b/tests/lib/HTTPHelperTest.php
index 6d9c4788735..d241acb2f93 100644
--- a/tests/lib/HTTPHelperTest.php
+++ b/tests/lib/HTTPHelperTest.php
@@ -8,6 +8,8 @@
namespace Test;
+use OCP\Http\Client\IClientService;
+
class HTTPHelperTest extends \Test\TestCase {
/** @var \OCP\IConfig*/
@@ -22,7 +24,7 @@ class HTTPHelperTest extends \Test\TestCase {
$this->config = $this->getMockBuilder('\OCP\IConfig')
->disableOriginalConstructor()->getMock();
- $this->clientService = $this->getMock('\OCP\Http\Client\IClientService');
+ $this->clientService = $this->createMock(IClientService::class);
$this->httpHelperMock = $this->getMockBuilder('\OC\HTTPHelper')
->setConstructorArgs(array($this->config, $this->clientService))
->setMethods(array('getHeaders'))