diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-06-01 14:29:31 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-20 20:27:44 +0200 |
commit | 246bb9f33d23340d821384b25097066f65c5d483 (patch) | |
tree | 1f5b8692db952c537e54f1816eff9ec9949560a7 /apps/dav | |
parent | 98c846456417989d995fe868731e2b1bd77f0f37 (diff) | |
download | nextcloud-server-246bb9f33d23340d821384b25097066f65c5d483.tar.gz nextcloud-server-246bb9f33d23340d821384b25097066f65c5d483.zip |
Move OC\Files\Storage\Shared to the right namespace
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Node.php | 4 | ||||
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Node.php b/apps/dav/lib/Connector/Sabre/Node.php index a63282c75e2..3e2204cf661 100644 --- a/apps/dav/lib/Connector/Sabre/Node.php +++ b/apps/dav/lib/Connector/Sabre/Node.php @@ -250,8 +250,8 @@ abstract class Node implements \Sabre\DAV\INode { $path = $this->info->getInternalPath(); - if ($storage->instanceOfStorage('\OC\Files\Storage\Shared')) { - /** @var \OC\Files\Storage\Shared $storage */ + if ($storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) { + /** @var \OCA\Files_Sharing\SharedStorage $storage */ $permissions = (int)$storage->getShare()->getPermissions(); } else { $permissions = $storage->getPermissions($path); diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php index fedf76f7929..18f91bbd8c9 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php @@ -216,7 +216,7 @@ class DirectoryTest extends \Test\TestCase { $storage->expects($this->any()) ->method('instanceOfStorage') ->will($this->returnValueMap([ - '\OC\Files\Storage\Shared' => false, + '\OCA\Files_Sharing\SharedStorage' => false, '\OC\Files\Storage\Wrapper\Quota' => false, ])); @@ -247,7 +247,7 @@ class DirectoryTest extends \Test\TestCase { $storage->expects($this->any()) ->method('instanceOfStorage') ->will($this->returnValueMap([ - ['\OC\Files\Storage\Shared', false], + ['\OCA\Files_Sharing\SharedStorage', false], ['\OC\Files\Storage\Wrapper\Quota', true], ])); |