diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-09-26 13:10:17 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-02 19:50:44 +0200 |
commit | 00e99af5863e40e89c012f3ce642802c891def4e (patch) | |
tree | fd3c6298541887f73caf0c88346135993f334383 /tests | |
parent | efef05396034eaf34614b39aef36056a65f6f452 (diff) | |
download | nextcloud-server-00e99af5863e40e89c012f3ce642802c891def4e.tar.gz nextcloud-server-00e99af5863e40e89c012f3ce642802c891def4e.zip |
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.php | 6 |
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)); |