diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-09-21 17:56:00 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-09-21 17:56:00 +0200 |
commit | 87e10f9e6a0907adf20538f09159274e6b9ca429 (patch) | |
tree | 821c99e73b518064dc1e8b966e31416babf80fcf /tests | |
parent | 4d556a3ade39f38eb4b2ca3253863e3f86c7c69b (diff) | |
download | nextcloud-server-87e10f9e6a0907adf20538f09159274e6b9ca429.tar.gz nextcloud-server-87e10f9e6a0907adf20538f09159274e6b9ca429.zip |
OC_OCS_Response is deprecated
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/APITest.php | 8 |
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()); } |