summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-05-04 08:43:05 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-05-04 08:43:05 +0200
commit412d3e2e80f79b09e51b9f9aeebc6298aa524ddf (patch)
tree42933e4c14ceff48283dc04c7f5d500905fe6719 /apps
parente5960fe2606d6b84e558ae5b6f888ff3a24e4a05 (diff)
downloadnextcloud-server-412d3e2e80f79b09e51b9f9aeebc6298aa524ddf.tar.gz
nextcloud-server-412d3e2e80f79b09e51b9f9aeebc6298aa524ddf.zip
Fix SharedStorage Test
A moveable mount point (What a SharedStorage is) always has DELETE + UPDATE permissions. Since you can either delete (unshare) or update (rename) it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/SharedStorageTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/SharedStorageTest.php b/apps/files_sharing/tests/SharedStorageTest.php
index 7d007cb6414..0d536e9483c 100644
--- a/apps/files_sharing/tests/SharedStorageTest.php
+++ b/apps/files_sharing/tests/SharedStorageTest.php
@@ -210,7 +210,7 @@ class SharedStorageTest extends TestCase {
// the read permissions (1)
// the delete permission (8), to enable unshare
$rootInfo = \OC\Files\Filesystem::getFileInfo($this->folder);
- $this->assertSame(9, $rootInfo->getPermissions());
+ $this->assertSame(\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_DELETE | \OCP\Constants::PERMISSION_UPDATE, $rootInfo->getPermissions());
// for the file within the shared folder we expect:
// the read permissions (1)