From 84bc30200e2acab9e2967b47480f33500a6ebc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= <skjnldsv@protonmail.com> Date: Tue, 24 Jul 2018 10:59:03 +0200 Subject: [PATCH] Phpunit tests fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> --- .../tests/Controller/ViewControllerTest.php | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) 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' => [], ] -- GitLab