diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-02-15 16:55:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-15 16:55:12 +0100 |
commit | 14bc9b171427c1512226d5ea402021d8b44ac690 (patch) | |
tree | 1a4b9c64f711becf429f90da69d3d46279c55435 /tests/lib | |
parent | 8a505e8767fe7af62a4e9e8d95ef2e336b05bf61 (diff) | |
parent | e694b30a4f1e1cce6cbca0fcbbfeceee8a16c8f6 (diff) | |
download | nextcloud-server-14bc9b171427c1512226d5ea402021d8b44ac690.tar.gz nextcloud-server-14bc9b171427c1512226d5ea402021d8b44ac690.zip |
Merge pull request #8095 from nextcloud/webapps-capabilities
Expose navigation entries as API endpoint
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/NavigationManagerTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/NavigationManagerTest.php b/tests/lib/NavigationManagerTest.php index 585161c887b..b34ecca9469 100644 --- a/tests/lib/NavigationManagerTest.php +++ b/tests/lib/NavigationManagerTest.php @@ -284,7 +284,7 @@ class NavigationManagerTest extends TestCase { ], ]; return [ - 'minimalistic' => [array_merge($defaults, [[ + 'minimalistic' => [array_merge([$defaults[0]], [[ 'id' => 'test', 'order' => 100, 'href' => '/apps/test/', @@ -293,8 +293,8 @@ class NavigationManagerTest extends TestCase { 'active' => false, 'type' => 'link', 'classes' => '', - ]]), ['navigations' => [['route' => 'test.page.index', 'name' => 'Test']]]], - 'minimalistic-settings' => [array_merge($defaults, [[ + ]], [$defaults[1]]), ['navigations' => [['route' => 'test.page.index', 'name' => 'Test']]]], + 'minimalistic-settings' => [array_merge([$defaults[0]], [[ 'id' => 'test', 'order' => 100, 'href' => '/apps/test/', @@ -303,8 +303,8 @@ class NavigationManagerTest extends TestCase { 'active' => false, 'type' => 'settings', 'classes' => '', - ]]), ['navigations' => [['route' => 'test.page.index', 'name' => 'Test', 'type' => 'settings']]]], - 'admin' => [array_merge($apps, $defaults, [[ + ]], [$defaults[1]]), ['navigations' => [['route' => 'test.page.index', 'name' => 'Test', 'type' => 'settings']]]], + 'admin' => [array_merge([$defaults[0]], $apps, [[ 'id' => 'test', 'order' => 100, 'href' => '/apps/test/', @@ -313,8 +313,8 @@ class NavigationManagerTest extends TestCase { 'active' => false, 'type' => 'link', 'classes' => '', - ]]), ['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], + ]], [$defaults[1]]), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']]], true], + 'no name' => [array_merge([$defaults[0]], $apps, [$defaults[1]]), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index']]], true], 'no admin' => [$defaults, ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']]]] ]; } |