From 09970e1816644661d4ad1984793232c880aac1ac Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 4 Jun 2014 13:00:32 +0200 Subject: [PATCH] update unit tests and make sure that we return the right permissions for files within a shared folder and for the shared folder itself --- apps/files_sharing/tests/permissions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/files_sharing/tests/permissions.php b/apps/files_sharing/tests/permissions.php index 5ac251b052..0a222b0851 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']); } }