diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-09-21 20:38:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 20:38:18 +0200 |
commit | 38568c362b55e5b77838ab40d81c23fd724633d1 (patch) | |
tree | 1fe12b7ab3f1dfd13669a904e3b2fd9303ff6b37 /apps | |
parent | e336283a4860b1e4e498968980905105711a6776 (diff) | |
parent | 7eba0a2720ec7cece503c4d6e3859b208fd312cb (diff) | |
download | nextcloud-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 'apps')
-rw-r--r-- | apps/files_external/lib/Lib/Api.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareAPIControllerTest.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/lib/Lib/Api.php b/apps/files_external/lib/Lib/Api.php index 6b10443bbdc..547285a2312 100644 --- a/apps/files_external/lib/Lib/Api.php +++ b/apps/files_external/lib/Lib/Api.php @@ -72,7 +72,7 @@ class Api { * Returns the mount points visible for this user. * * @param array $params - * @return \OC_OCS_Result share information + * @return \OC\OCS\Result share information */ public static function getUserMounts($params) { $entries = array(); @@ -83,6 +83,6 @@ class Api { $entries[] = self::formatMount($mountPoint, $mount); } - return new \OC_OCS_Result($entries); + return new \OC\OCS\Result($entries); } } diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index fc6e4572845..45134df36b7 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -220,7 +220,7 @@ class ShareAPIControllerTest extends TestCase { ->with('ocinternal:42') ->will($this->throwException(new \OC\Share20\Exception\ShareNotFound())); - $expected = new \OC_OCS_Result(null, 404, 'wrong share ID, share doesn\'t exist.'); + $expected = new \OC\OCS\Result(null, 404, 'wrong share ID, share doesn\'t exist.'); $this->assertEquals($expected, $this->ocs->getShare(42)); } */ |