summaryrefslogtreecommitdiffstats
path: root/tests/Settings
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-02-13 14:59:20 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-19 19:41:16 +0100
commita80f72c6c8a89eb77a13cfba3e4fc27e95572824 (patch)
tree23495d5d24d8dbd7c199d15ef26550e9d8646a1b /tests/Settings
parent817f2f8f49aec409da832219f43663793e1933a8 (diff)
downloadnextcloud-server-a80f72c6c8a89eb77a13cfba3e4fc27e95572824.tar.gz
nextcloud-server-a80f72c6c8a89eb77a13cfba3e4fc27e95572824.zip
fix controller test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/Settings')
-rw-r--r--tests/Settings/Controller/CheckSetupControllerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php
index a0ee7f6cae6..a616cc3e70b 100644
--- a/tests/Settings/Controller/CheckSetupControllerTest.php
+++ b/tests/Settings/Controller/CheckSetupControllerTest.php
@@ -21,7 +21,6 @@
namespace Tests\Settings\Controller;
-use Guzzle\Http\Message\Response;
use OC\Settings\Controller\CheckSetupController;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
@@ -34,6 +33,7 @@ use OCP\ILogger;
use OCP\IRequest;
use OCP\IURLGenerator;
use OC_Util;
+use Psr\Http\Message\ResponseInterface;
use Test\TestCase;
use OC\IntegrityCheck\Checker;
@@ -461,7 +461,7 @@ class CheckSetupControllerTest extends TestCase {
->disableOriginalConstructor()->getMock();
$exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException')
->disableOriginalConstructor()->getMock();
- $response = $this->getMockBuilder(Response::class)
+ $response = $this->getMockBuilder(ResponseInterface::class)
->disableOriginalConstructor()->getMock();
$response->expects($this->once())
->method('getStatusCode')
@@ -495,7 +495,7 @@ class CheckSetupControllerTest extends TestCase {
->disableOriginalConstructor()->getMock();
$exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException')
->disableOriginalConstructor()->getMock();
- $response = $this->getMockBuilder(Response::class)
+ $response = $this->getMockBuilder(ResponseInterface::class)
->disableOriginalConstructor()->getMock();
$response->expects($this->once())
->method('getStatusCode')