diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-12-08 11:32:18 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-12-08 13:04:22 +0100 |
commit | e241d2631672836d7a512cd890b14d7523fbc756 (patch) | |
tree | 16c5a97538a6f430d6963c56f0f9546a640b90dd /apps/files | |
parent | bec34f12757517a784f6e35fc6b7294ab1673c59 (diff) | |
download | nextcloud-server-e241d2631672836d7a512cd890b14d7523fbc756.tar.gz nextcloud-server-e241d2631672836d7a512cd890b14d7523fbc756.zip |
Compute share permissions in the view
The share permissions are now computed in the View/FileInfo instead of
storing them directly/permanently on the storage
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/tests/controller/apicontrollertest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/tests/controller/apicontrollertest.php b/apps/files/tests/controller/apicontrollertest.php index fb728d5eff0..bc66e4641b9 100644 --- a/apps/files/tests/controller/apicontrollertest.php +++ b/apps/files/tests/controller/apicontrollertest.php @@ -92,6 +92,7 @@ class ApiControllerTest extends TestCase { [ 'mtime' => 55, 'mimetype' => 'application/pdf', + 'permissions' => 31, 'size' => 1234, 'etag' => 'MyEtag', ], @@ -111,7 +112,7 @@ class ApiControllerTest extends TestCase { 'parentId' => null, 'mtime' => 55000, 'name' => 'root.txt', - 'permissions' => null, + 'permissions' => 31, 'mimetype' => 'application/pdf', 'size' => 1234, 'type' => 'file', @@ -139,6 +140,7 @@ class ApiControllerTest extends TestCase { [ 'mtime' => 55, 'mimetype' => 'application/pdf', + 'permissions' => 31, 'size' => 1234, 'etag' => 'MyEtag', ], @@ -155,6 +157,7 @@ class ApiControllerTest extends TestCase { [ 'mtime' => 999, 'mimetype' => 'application/binary', + 'permissions' => 31, 'size' => 9876, 'etag' => 'SubEtag', ], @@ -174,7 +177,7 @@ class ApiControllerTest extends TestCase { 'parentId' => null, 'mtime' => 55000, 'name' => 'root.txt', - 'permissions' => null, + 'permissions' => 31, 'mimetype' => 'application/pdf', 'size' => 1234, 'type' => 'file', @@ -191,7 +194,7 @@ class ApiControllerTest extends TestCase { 'parentId' => null, 'mtime' => 999000, 'name' => 'root.txt', - 'permissions' => null, + 'permissions' => 31, 'mimetype' => 'application/binary', 'size' => 9876, 'type' => 'file', |