Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-09-26 14:10:17 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-02 20:50:44 +0300
commit00e99af5863e40e89c012f3ce642802c891def4e (patch)
treefd3c6298541887f73caf0c88346135993f334383 /tests
parentefef05396034eaf34614b39aef36056a65f6f452 (diff)
Mark token as invalid if the password doesn't match
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/User/SessionTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/User/SessionTest.php b/tests/lib/User/SessionTest.php
index 24677b57dd6..81ceade9e02 100644
--- a/tests/lib/User/SessionTest.php
+++ b/tests/lib/User/SessionTest.php
@@ -1017,10 +1017,8 @@ class SessionTest extends \Test\TestCase {
->method('getPassword')
->with($token, 'APP-PASSWORD')
->will($this->returnValue('123456'));
- $userManager->expects($this->once())
- ->method('checkPassword')
- ->with('susan', '123456')
- ->will($this->returnValue(true));
+ $userManager->expects($this->never())
+ ->method('checkPassword');
$user->expects($this->once())
->method('isEnabled')
->will($this->returnValue(false));