summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/permissions.php
diff options
context:
space:
mode:
authoricewind1991 <robin@icewind.nl>2014-06-06 11:57:43 +0200
committericewind1991 <robin@icewind.nl>2014-06-06 11:57:43 +0200
commitc47d4ebbac7885ad91cf56355bd6aa09318ff8e8 (patch)
tree22a78530feb3c582cf5624b4089bd79c8e9b2afd /apps/files_sharing/tests/permissions.php
parent0661d737e6f529b7d921ada441453f2b314c3445 (diff)
parent46f70aabfd399e1bc5517b2192ac2489189f9d94 (diff)
downloadnextcloud-server-c47d4ebbac7885ad91cf56355bd6aa09318ff8e8.tar.gz
nextcloud-server-c47d4ebbac7885ad91cf56355bd6aa09318ff8e8.zip
Merge pull request #8666 from owncloud/mount-remove
Support for (re)moving mountpoints
Diffstat (limited to 'apps/files_sharing/tests/permissions.php')
-rw-r--r--apps/files_sharing/tests/permissions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/permissions.php b/apps/files_sharing/tests/permissions.php
index 5ac251b0527..0a222b08512 100644
--- a/apps/files_sharing/tests/permissions.php
+++ b/apps/files_sharing/tests/permissions.php
@@ -111,5 +111,10 @@ class Test_Files_Sharing_Permissions extends Test_Files_Sharing_Base {
$this->assertEquals(7, $contents[0]['permissions']);
$this->assertEquals('textfile1.txt', $contents[1]['name']);
$this->assertEquals(7, $contents[1]['permissions']);
+
+ // the share mount point should always have delete permissions to allow the user
+ // to unmount it
+ $restrictedShare = $this->secondView->getFileInfo('files/shareddirrestricted');
+ $this->assertEquals(7 | \OCP\PERMISSION_DELETE, $restrictedShare['permissions']);
}
}