Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix getMock HTTPHelper
  • Loading branch information
rullzer committed Sep 7, 2016
commit aa670cab14d75fe04c97c3a61fd1a1d620f78e78
4 changes: 3 additions & 1 deletion tests/lib/HTTPHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

namespace Test;

use OCP\Http\Client\IClientService;

class HTTPHelperTest extends \Test\TestCase {

/** @var \OCP\IConfig*/
Expand All @@ -22,7 +24,7 @@ protected function setUp() {

$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'))
Expand Down