diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-05-04 08:43:05 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-05-04 08:43:05 +0200 |
commit | 412d3e2e80f79b09e51b9f9aeebc6298aa524ddf (patch) | |
tree | 42933e4c14ceff48283dc04c7f5d500905fe6719 | |
parent | e5960fe2606d6b84e558ae5b6f888ff3a24e4a05 (diff) | |
download | nextcloud-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>
-rw-r--r-- | apps/files_sharing/tests/SharedStorageTest.php | 2 |
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) |