diff options
author | Robin Appelman <robin@icewind.nl> | 2018-02-08 13:39:27 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-02-09 17:13:21 +0100 |
commit | 9b25ff9fcb7299419c42b457da23ea3bae186157 (patch) | |
tree | 9cfaa02ad646bfaf71fc769b3bd8a235650e72cd /tests/Settings | |
parent | 18215eb01d0812651f4e3ef4dd772002df388a3a (diff) | |
download | nextcloud-server-9b25ff9fcb7299419c42b457da23ea3bae186157.tar.gz nextcloud-server-9b25ff9fcb7299419c42b457da23ea3bae186157.zip |
adjust httpclient to guzzle6
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/Controller/CheckSetupControllerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php index 3f47819bcbd..a0ee7f6cae6 100644 --- a/tests/Settings/Controller/CheckSetupControllerTest.php +++ b/tests/Settings/Controller/CheckSetupControllerTest.php @@ -21,6 +21,7 @@ namespace Tests\Settings\Controller; +use Guzzle\Http\Message\Response; use OC\Settings\Controller\CheckSetupController; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataDisplayResponse; @@ -460,7 +461,7 @@ class CheckSetupControllerTest extends TestCase { ->disableOriginalConstructor()->getMock(); $exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException') ->disableOriginalConstructor()->getMock(); - $response = $this->getMockBuilder('\GuzzleHttp\Message\ResponseInterface') + $response = $this->getMockBuilder(Response::class) ->disableOriginalConstructor()->getMock(); $response->expects($this->once()) ->method('getStatusCode') @@ -494,7 +495,7 @@ class CheckSetupControllerTest extends TestCase { ->disableOriginalConstructor()->getMock(); $exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException') ->disableOriginalConstructor()->getMock(); - $response = $this->getMockBuilder('\GuzzleHttp\Message\ResponseInterface') + $response = $this->getMockBuilder(Response::class) ->disableOriginalConstructor()->getMock(); $response->expects($this->once()) ->method('getStatusCode') |