mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
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>
This commit is contained in:
parent
e5960fe260
commit
412d3e2e80
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue