diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-24 10:59:03 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-24 11:01:11 +0200 |
commit | 84bc30200e2acab9e2967b47480f33500a6ebc49 (patch) | |
tree | d7ba884d6d0814011ea6cd408bdb08991e8d4b39 /apps | |
parent | 440b5c944f1d5bb759da1f90ad7fb17ba0e2b302 (diff) | |
download | nextcloud-server-84bc30200e2acab9e2967b47480f33500a6ebc49.tar.gz nextcloud-server-84bc30200e2acab9e2967b47480f33500a6ebc49.zip |
Phpunit tests fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/tests/Controller/ViewControllerTest.php | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index 674d4a9542e..7dc99409800 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -203,6 +203,49 @@ class ViewControllerTest extends TestCase { 'type' => 'link', 'classes' => 'pinned', ], + 'shareoverview' => [ + 'id' => 'shareoverview', + 'appname' => 'files_sharing', + 'script' => 'list.php', + 'order' => 18, + 'name' => \OC::$server->getL10N('files_sharing')->t('Shares'), + 'classes' => 'collapsible', + 'sublist' => [ + [ + 'id' => 'sharingout', + 'appname' => 'files_sharing', + 'script' => 'list.php', + 'order' => 16, + 'name' => \OC::$server->getL10N('files_sharing')->t('Shared with others'), + ], + [ + 'id' => 'sharingin', + 'appname' => 'files_sharing', + 'script' => 'list.php', + 'order' => 15, + 'name' => \OC::$server->getL10N('files_sharing')->t('Shared with you'), + ], + [ + 'id' => 'sharinglinks', + 'appname' => 'files_sharing', + 'script' => 'list.php', + 'order' => 17, + 'name' => \OC::$server->getL10N('files_sharing')->t('Shared by link', []), + ], + [ + 'id' => 'deletedshares', + 'appname' => 'files_sharing', + 'script' => 'list.php', + 'order' => 19, + 'name' => \OC::$server->getL10N('files_sharing')->t('Deleted shares'), + ], + ], + 'active' => false, + 'icon' => '', + 'type' => 'link', + 'expandedState' => 'show_sharing_menu', + 'defaultExpandedState' => false, + ] ]); $expected = new Http\TemplateResponse( @@ -240,6 +283,26 @@ class ViewControllerTest extends TestCase { 'id' => 'trashbin', 'content' => null, ], + 'sharingout' => [ + 'id' => 'sharingout', + 'content' => null, + ], + 'sharingin' => [ + 'id' => 'sharingin', + 'content' => null, + ], + 'sharinglinks' => [ + 'id' => 'sharinglinks', + 'content' => null, + ], + 'deletedshares' => [ + 'id' => 'deletedshares', + 'content' => null, + ], + 'shareoverview' => [ + 'id' => 'shareoverview', + 'content' => null, + ], ], 'hiddenFields' => [], ] |