Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-02-22 17:45:55 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-02-22 17:57:14 +0300
commit36c51bc4f160d8b18de64739e9ffccccee8a5b25 (patch)
treea7ed5edf4aa085a8c36792993a7be8caffe681cb /tests/lib/NavigationManagerTest.php
parent2083103d0ba8ce41489632ebe240f6dde51baccc (diff)
Parse multiple navigation items
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/lib/NavigationManagerTest.php')
-rw-r--r--tests/lib/NavigationManagerTest.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/tests/lib/NavigationManagerTest.php b/tests/lib/NavigationManagerTest.php
index f552bd2eeed..31efbce929c 100644
--- a/tests/lib/NavigationManagerTest.php
+++ b/tests/lib/NavigationManagerTest.php
@@ -296,7 +296,9 @@ class NavigationManagerTest extends TestCase {
['logout' => $defaults['logout']]
),
['navigations' => [
- ['route' => 'test.page.index', 'name' => 'Test']
+ 'navigation' => [
+ ['route' => 'test.page.index', 'name' => 'Test']
+ ]
]]
],
'minimalistic-settings' => [
@@ -315,9 +317,11 @@ class NavigationManagerTest extends TestCase {
['logout' => $defaults['logout']]
),
['navigations' => [
- ['route' => 'test.page.index', 'name' => 'Test', 'type' => 'settings']
- ]
- ]],
+ 'navigation' => [
+ ['route' => 'test.page.index', 'name' => 'Test', 'type' => 'settings']
+ ],
+ ]]
+ ],
'admin' => [
array_merge(
['settings' => $defaults['settings']],
@@ -335,7 +339,9 @@ class NavigationManagerTest extends TestCase {
['logout' => $defaults['logout']]
),
['navigations' => [
- ['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']
+ 'navigation' => [
+ ['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']
+ ],
]],
true
],
@@ -346,7 +352,9 @@ class NavigationManagerTest extends TestCase {
['logout' => $defaults['logout']]
),
['navigations' => [
- ['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index']
+ 'navigation' => [
+ ['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index']
+ ],
]],
true
],