summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/PermissionsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/PermissionsTest.php')
-rw-r--r--apps/files_sharing/tests/PermissionsTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_sharing/tests/PermissionsTest.php b/apps/files_sharing/tests/PermissionsTest.php
index 2eca474e966..5c0086646de 100644
--- a/apps/files_sharing/tests/PermissionsTest.php
+++ b/apps/files_sharing/tests/PermissionsTest.php
@@ -134,14 +134,14 @@ class PermissionsTest extends TestCase {
* Test that the permissions of shared directory are returned correctly
*/
function testGetPermissions() {
- $sharedDirPerms = $this->sharedStorage->getPermissions('shareddir');
+ $sharedDirPerms = $this->sharedStorage->getPermissions('');
$this->assertEquals(31, $sharedDirPerms);
- $sharedDirPerms = $this->sharedStorage->getPermissions('shareddir/textfile.txt');
- $this->assertEquals(31, $sharedDirPerms);
- $sharedDirRestrictedPerms = $this->sharedStorageRestrictedShare->getPermissions('shareddirrestricted');
- $this->assertEquals(7, $sharedDirRestrictedPerms);
- $sharedDirRestrictedPerms = $this->sharedStorageRestrictedShare->getPermissions('shareddirrestricted/textfile.txt');
- $this->assertEquals(7, $sharedDirRestrictedPerms);
+ $sharedDirPerms = $this->sharedStorage->getPermissions('textfile.txt');
+ $this->assertEquals(27, $sharedDirPerms);
+ $sharedDirRestrictedPerms = $this->sharedStorageRestrictedShare->getPermissions('');
+ $this->assertEquals(15, $sharedDirRestrictedPerms);
+ $sharedDirRestrictedPerms = $this->sharedStorageRestrictedShare->getPermissions('textfile1.txt');
+ $this->assertEquals(3, $sharedDirRestrictedPerms);
}
/**