diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-13 14:47:00 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-13 14:47:00 +0200 |
commit | a349f2a9f5c851dcbcadca203d2ffc4635706400 (patch) | |
tree | 89c10b8b6ac02c6846cd15afd9697c8936ef1dfd /apps/files | |
parent | 34368cc031a069cf16dfd770d59b8f4912c2ba68 (diff) | |
download | nextcloud-server-a349f2a9f5c851dcbcadca203d2ffc4635706400.tar.gz nextcloud-server-a349f2a9f5c851dcbcadca203d2ffc4635706400.zip |
Fixed phpunit
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/tests/Controller/ViewControllerTest.php | 84 |
1 files changed, 12 insertions, 72 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index 8f077645808..674d4a9542e 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -145,7 +145,7 @@ class ViewControllerTest extends TestCase { $nav->assign('total_space', '100 B'); //$nav->assign('webdavurl', ''); $nav->assign('navigationItems', [ - [ + 'files' => [ 'id' => 'files', 'appname' => 'files', 'script' => 'list.php', @@ -156,7 +156,7 @@ class ViewControllerTest extends TestCase { 'type' => 'link', 'classes' => '', ], - [ + 'recent' => [ 'id' => 'recent', 'appname' => 'files', 'script' => 'recentlist.php', @@ -167,65 +167,21 @@ class ViewControllerTest extends TestCase { 'type' => 'link', 'classes' => '', ], - [ + 'favorites' => [ 'id' => 'favorites', 'appname' => 'files', 'script' => 'simplelist.php', 'order' => 5, - 'name' => null, + 'name' => \OC::$server->getL10N('files')->t('Favorites'), 'active' => false, 'icon' => '', 'type' => 'link', 'classes' => '', 'sublist' => [], 'defaultExpandedState' => false, - 'enableMenuButton' => 0, + 'expandedState' => 'show_Quick_Access' ], - [ - 'id' => 'sharingin', - 'appname' => 'files_sharing', - 'script' => 'list.php', - 'order' => 15, - 'name' => \OC::$server->getL10N('files_sharing')->t('Shared with you'), - 'active' => false, - 'icon' => '', - 'type' => 'link', - 'classes' => '', - ], - [ - 'id' => 'sharingout', - 'appname' => 'files_sharing', - 'script' => 'list.php', - 'order' => 16, - 'name' => \OC::$server->getL10N('files_sharing')->t('Shared with others'), - 'active' => false, - 'icon' => '', - 'type' => 'link', - 'classes' => '', - ], - [ - 'id' => 'sharinglinks', - 'appname' => 'files_sharing', - 'script' => 'list.php', - 'order' => 17, - 'name' => \OC::$server->getL10N('files_sharing')->t('Shared by link', []), - 'active' => false, - 'icon' => '', - 'type' => 'link', - 'classes' => '', - ], - [ - 'id' => 'deletedshares', - 'appname' => 'files_sharing', - 'script' => 'list.php', - 'order' => 18, - 'name' => \OC::$server->getL10N('files_sharing')->t('Deleted shares'), - 'active' => false, - 'icon' => '', - 'type' => 'link', - 'classes' => '', - ], - [ + 'systemtagsfilter' => [ 'id' => 'systemtagsfilter', 'appname' => 'systemtags', 'script' => 'list.php', @@ -236,7 +192,7 @@ class ViewControllerTest extends TestCase { 'type' => 'link', 'classes' => '', ], - [ + 'trashbin' => [ 'id' => 'trashbin', 'appname' => 'files_trashbin', 'script' => 'list.php', @@ -264,39 +220,23 @@ class ViewControllerTest extends TestCase { 'allowShareWithLink' => 'yes', 'appNavigation' => $nav, 'appContents' => [ - [ + 'files' => [ 'id' => 'files', 'content' => null, ], - [ + 'recent' => [ 'id' => 'recent', 'content' => null, ], - [ + 'favorites' => [ 'id' => 'favorites', 'content' => null, ], - [ - 'id' => 'sharingin', - 'content' => null, - ], - [ - 'id' => 'sharingout', - 'content' => null, - ], - [ - 'id' => 'sharinglinks', - 'content' => null, - ], - [ - 'id' => 'deletedshares', - 'content' => null, - ], - [ + 'systemtagsfilter' => [ 'id' => 'systemtagsfilter', 'content' => null, ], - [ + 'trashbin' => [ 'id' => 'trashbin', 'content' => null, ], |