Fix getMock HTTPHelper

This commit is contained in:
Roeland Jago Douma 2016-09-07 20:03:57 +02:00
parent 28c801b3d5
commit aa670cab14
No known key found for this signature in database
GPG key ID: 1E152838F164D13B

View 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'))