summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-01-23 15:32:36 +0100
committerGitHub <noreply@github.com>2019-01-23 15:32:36 +0100
commit68c0fd3863e728f908cb33c84c770d1ea6709f94 (patch)
tree88d0c756db220200ff20ea7b3435d67fdab15ffb /tests
parentd59de22525a44ad413e1a57c3e4f6d91434d53a9 (diff)
parentebd9f30d85a718c6f89589a4c0116b043093e99a (diff)
downloadnextcloud-server-68c0fd3863e728f908cb33c84c770d1ea6709f94.tar.gz
nextcloud-server-68c0fd3863e728f908cb33c84c770d1ea6709f94.zip
Merge pull request #13757 from nextcloud/enh/also_cache_logout_route
Allow caching of the logout route
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/NavigationManagerTest.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/lib/NavigationManagerTest.php b/tests/lib/NavigationManagerTest.php
index 8bc1c372ac8..6649aba28b6 100644
--- a/tests/lib/NavigationManagerTest.php
+++ b/tests/lib/NavigationManagerTest.php
@@ -221,15 +221,10 @@ class NavigationManagerTest extends TestCase {
return '/apps/test/';
});
$this->urlGenerator
- ->expects($this->once())
- ->method('linkToRouteAbsolute')
- ->with(
- 'core.login.logout',
- [
- 'requesttoken' => \OCP\Util::callRegister()
- ]
- )
- ->willReturn('https://example.com/logout');
+ ->expects($this->once())
+ ->method('linkToRouteAbsolute')
+ ->with('core.login.logout')
+ ->willReturn('https://example.com/logout');
$user = $this->createMock(IUser::class);
$user->expects($this->any())->method('getUID')->willReturn('user001');
$this->userSession->expects($this->any())->method('getUser')->willReturn($user);
@@ -275,7 +270,7 @@ class NavigationManagerTest extends TestCase {
'logout' => [
'id' => 'logout',
'order' => 99999,
- 'href' => 'https://example.com/logout',
+ 'href' => 'https://example.com/logout?requesttoken='. \OCP\Util::callRegister(),
'icon' => '/apps/core/img/actions/logout.svg',
'name' => 'Log out',
'active' => false,