summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-21 12:57:54 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-26 11:07:01 +0100
commit77d136cbdffc02fb5c0d36652ca9babfd0283154 (patch)
tree3f967bb45335572f56e767263a89284b293f7c33 /apps/files_sharing/tests
parent0fab27f459d3276a2559cdee5693bfec8c2cf1c9 (diff)
downloadnextcloud-server-77d136cbdffc02fb5c0d36652ca9babfd0283154.tar.gz
nextcloud-server-77d136cbdffc02fb5c0d36652ca9babfd0283154.zip
Apply share permission mask to all files obtained via shareinfo
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/Controller/ShareInfoControllerTest.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareInfoControllerTest.php b/apps/files_sharing/tests/Controller/ShareInfoControllerTest.php
index cd548ecfa21..627990a2f90 100644
--- a/apps/files_sharing/tests/Controller/ShareInfoControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareInfoControllerTest.php
@@ -173,9 +173,6 @@ class ShareInfoControllerTest extends TestCase {
->with($share, 'pass')
->willReturn(true);
- $this->controller->expects($this->once())
- ->method('addROWrapper');
-
$expected = new JSONResponse([
'id' => 42,
'parentId' => 41,
@@ -285,7 +282,7 @@ class ShareInfoControllerTest extends TestCase {
'parentId' => 43,
'mtime' => 1339,
'name' => 'file',
- 'permissions' => 9,
+ 'permissions' => 1,
'mimetype' => 'mime/type',
'size' => 3,
'type' => 'file',