]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust tests to the old settings menu 5617/head
authorJoas Schilling <coding@schilljs.com>
Thu, 6 Jul 2017 07:30:42 +0000 (09:30 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 6 Jul 2017 07:30:42 +0000 (09:30 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/lib/NavigationManagerTest.php

index de432e1eaf2e027e57bcda486d7a37493e433d52..ab396a88c73d2771f3126f612911e349dbccb271 100644 (file)
@@ -247,13 +247,24 @@ class NavigationManagerTest extends TestCase {
                                'type' => 'settings',
                        ]
                ];
+               $admin = [
+                       [
+                               'id' => 'admin',
+                               'order' => 2,
+                               'href' => '/apps/test/',
+                               'icon' => '/apps/settings/img/admin.svg',
+                               'name' => 'Admin',
+                               'active' => false,
+                               'type' => 'settings',
+                       ]
+               ];
                $defaults = [
                        [
-                               'id' => 'settings',
+                               'id' => 'personal',
                                'order' => 1,
                                'href' => '/apps/test/',
-                               'icon' => '/apps/settings/img/admin.svg',
-                               'name' => 'Settings',
+                               'icon' => '/apps/settings/img/personal.svg',
+                               'name' => 'Personal',
                                'active' => false,
                                'type' => 'settings',
                        ],
@@ -286,7 +297,7 @@ class NavigationManagerTest extends TestCase {
                                'active' => false,
                                'type' => 'settings',
                        ]]), ['navigations' => [['route' => 'test.page.index', 'name' => 'Test', 'type' => 'settings']]]],
-                       'admin' => [array_merge($apps, $defaults, [[
+                       'admin' => [array_merge($apps, $defaults, $admin, [[
                                'id' => 'test',
                                'order' => 100,
                                'href' => '/apps/test/',
@@ -295,7 +306,7 @@ class NavigationManagerTest extends TestCase {
                                'active' => false,
                                'type' => 'link',
                        ]]), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']]], true],
-                       'no name' => [array_merge($apps, $defaults), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index']]], true],
+                       'no name' => [array_merge($apps, $defaults, $admin), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index']]], true],
                        'no admin' => [$defaults, ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']]]]
                ];
        }