diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-25 13:50:46 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-07-25 13:50:46 +0200 |
commit | 4c773891d738c732f525030aa1d0dd187c4221ec (patch) | |
tree | 8065313e401b8017a6e86420d6eeb4e8076e4490 /tests | |
parent | 8e81bc78951a7e47ec840dab6b250f191537b4c5 (diff) | |
download | nextcloud-server-4c773891d738c732f525030aa1d0dd187c4221ec.tar.gz nextcloud-server-4c773891d738c732f525030aa1d0dd187c4221ec.zip |
Fix app navigation controller to return an array
This is required to not break compatibility with existing consumers of that endpoint like the apps management or the client
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Core/Controller/NavigationControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Core/Controller/NavigationControllerTest.php b/tests/Core/Controller/NavigationControllerTest.php index 86173405c1c..4095526fc0b 100644 --- a/tests/Core/Controller/NavigationControllerTest.php +++ b/tests/Core/Controller/NavigationControllerTest.php @@ -69,7 +69,7 @@ class NavigationControllerTest extends TestCase { $this->navigationManager->expects($this->once()) ->method('getAll') ->with('link') - ->willReturn([ ['id' => 'files', 'href' => '/index.php/apps/files', 'icon' => 'icon' ] ]); + ->willReturn(['files' => ['id' => 'files', 'href' => '/index.php/apps/files', 'icon' => 'icon' ] ]); if ($absolute) { $this->urlGenerator->expects($this->any()) ->method('getBaseURL') @@ -102,7 +102,7 @@ class NavigationControllerTest extends TestCase { $this->navigationManager->expects($this->once()) ->method('getAll') ->with('settings') - ->willReturn([ ['id' => 'settings', 'href' => '/index.php/settings/user', 'icon' => '/core/img/settings.svg'] ]); + ->willReturn(['settings' => ['id' => 'settings', 'href' => '/index.php/settings/user', 'icon' => '/core/img/settings.svg'] ]); if ($absolute) { $this->urlGenerator->expects($this->any()) ->method('getBaseURL') |