summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-02-02 12:01:27 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-02-02 20:21:58 +0100
commit850e67dea93e846afba9d86c6b5f08694ecfeb80 (patch)
tree13ea68eb050d92717d1f7b9810b5e0def7e77428 /tests
parent9ff6a2dab8e3f81efff2c7925ff2d77ceecd738f (diff)
downloadnextcloud-server-850e67dea93e846afba9d86c6b5f08694ecfeb80.tar.gz
nextcloud-server-850e67dea93e846afba9d86c6b5f08694ecfeb80.zip
Don't update token if current session token
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/Settings/Controller/AuthSettingsControllerTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/Settings/Controller/AuthSettingsControllerTest.php b/tests/Settings/Controller/AuthSettingsControllerTest.php
index f2daef52254..d0ed40f25b7 100644
--- a/tests/Settings/Controller/AuthSettingsControllerTest.php
+++ b/tests/Settings/Controller/AuthSettingsControllerTest.php
@@ -1,5 +1,4 @@
<?php
-
/**
* @author Christoph Wurst <christoph@owncloud.com>
*
@@ -110,7 +109,7 @@ class AuthSettingsControllerTest extends TestCase {
'canDelete' => false,
'current' => true,
'scope' => ['filesystem' => true],
- 'canRename' => true,
+ 'canRename' => false,
],
[
'id' => 200,
@@ -164,7 +163,7 @@ class AuthSettingsControllerTest extends TestCase {
$expected = [
'token' => $newToken,
- 'deviceToken' => ['dummy' => 'dummy', 'canDelete' => true],
+ 'deviceToken' => ['dummy' => 'dummy', 'canDelete' => true, 'canRename' => true],
'loginName' => 'User13',
];