summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-09-21 20:38:18 +0200
committerGitHub <noreply@github.com>2017-09-21 20:38:18 +0200
commit38568c362b55e5b77838ab40d81c23fd724633d1 (patch)
tree1fe12b7ab3f1dfd13669a904e3b2fd9303ff6b37 /tests
parente336283a4860b1e4e498968980905105711a6776 (diff)
parent7eba0a2720ec7cece503c4d6e3859b208fd312cb (diff)
downloadnextcloud-server-38568c362b55e5b77838ab40d81c23fd724633d1.tar.gz
nextcloud-server-38568c362b55e5b77838ab40d81c23fd724633d1.zip
Merge pull request #6605 from nextcloud/oc_ocs_response_is_dep
OC_OCS_Response is deprecated
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/APITest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/APITest.php b/tests/lib/APITest.php
index d3ab6db9e4b..c2a25d1306c 100644
--- a/tests/lib/APITest.php
+++ b/tests/lib/APITest.php
@@ -16,7 +16,7 @@ class APITest extends \Test\TestCase {
* @param string $message
*/
function buildResponse($shipped, $data, $code, $message=null) {
- $resp = new \OC_OCS_Result($data, $code, $message);
+ $resp = new \OC\OCS\Result($data, $code, $message);
$resp->addHeader('KEY', 'VALUE');
return [
'shipped' => $shipped,
@@ -28,13 +28,13 @@ class APITest extends \Test\TestCase {
// Validate details of the result
/**
- * @param \OC_OCS_Result $result
+ * @param \OC\OCS\Result $result
*/
function checkResult($result, $success) {
// Check response is of correct type
- $this->assertInstanceOf('OC_OCS_Result', $result);
+ $this->assertInstanceOf(\OC\OCS\Result::class, $result);
// Check if it succeeded
- /** @var $result \OC_OCS_Result */
+ /** @var $result \OC\OCS\Result */
$this->assertEquals($success, $result->succeeded());
}