]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getMock HTTPHelper
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:03:57 +0000 (20:03 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:42:37 +0000 (20:42 +0200)
tests/lib/HTTPHelperTest.php

index 6d9c478873567d03b85ad957e3f67fb337b813fc..d241acb2f9300455a929da48a3ef90795b65838b 100644 (file)
@@ -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'))