From aa670cab14d75fe04c97c3a61fd1a1d620f78e78 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Wed, 7 Sep 2016 20:03:57 +0200
Subject: [PATCH] Fix getMock HTTPHelper

---
 tests/lib/HTTPHelperTest.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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