Skip to content
Snippets Groups Projects
Commit 09970e18 authored by Björn Schießle's avatar Björn Schießle Committed by Robin Appelman
Browse files

update unit tests and make sure that we return the right permissions for files...

update unit tests and make sure that we return the right permissions for files within a shared folder and for the shared folder itself
parent 574de2d9
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment