Browse Source

update unit tests and make sure that we return the right permissions for files within a shared folder and for the shared folder itself

tags/v7.0.0alpha2
Bjoern Schiessle 10 years ago
parent
commit
09970e1816
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      apps/files_sharing/tests/permissions.php

+ 5
- 0
apps/files_sharing/tests/permissions.php View File

@@ -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']);
}
}

Loading…
Cancel
Save