diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-03-05 16:22:18 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-03-06 09:51:28 +0100 |
commit | 11b6cc3f68f55e1c5e725b737b39c0a7f79e0ec1 (patch) | |
tree | 4dbc0874cf0dcad37dde7e5cba581adc614af515 /tests/Core | |
parent | 723b8764d111fd414cf2e37ae06e0b9a29c9dff7 (diff) | |
download | nextcloud-server-11b6cc3f68f55e1c5e725b737b39c0a7f79e0ec1.tar.gz nextcloud-server-11b6cc3f68f55e1c5e725b737b39c0a7f79e0ec1.zip |
Replace logout href to avoid new etag on every request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/Core')
-rw-r--r-- | tests/Core/Controller/NavigationControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Core/Controller/NavigationControllerTest.php b/tests/Core/Controller/NavigationControllerTest.php index ef4720604fb..a33ddf7dd23 100644 --- a/tests/Core/Controller/NavigationControllerTest.php +++ b/tests/Core/Controller/NavigationControllerTest.php @@ -132,7 +132,7 @@ class NavigationControllerTest extends TestCase { $this->request->expects($this->once()) ->method('getHeader') ->with('If-None-Match') - ->willReturn(md5(json_encode($navigation))); + ->willReturn(md5(json_encode(['files']))); $this->navigationManager->expects($this->once()) ->method('getAll') ->with('link') @@ -143,11 +143,11 @@ class NavigationControllerTest extends TestCase { } public function testGetSettingsNavigationEtagMatch() { - $navigation = [ ['id' => 'files', 'href' => '/index.php/apps/files', 'icon' => 'icon' ] ]; + $navigation = [ ['id' => 'logout', 'href' => '/index.php/apps/files', 'icon' => 'icon' ] ]; $this->request->expects($this->once()) ->method('getHeader') ->with('If-None-Match') - ->willReturn(md5(json_encode($navigation))); + ->willReturn(md5(json_encode([ ['id' => 'logout', 'href' => 'logout', 'icon' => 'icon' ] ]))); $this->navigationManager->expects($this->once()) ->method('getAll') ->with('settings') |