summaryrefslogtreecommitdiffstats
path: root/tests/Core/Controller/LostControllerTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 13:58:06 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 13:58:06 +0100
commit8d1dd1945fa6f5f382224da6bbd333ded8f2a31f (patch)
treecc27603faff989d18f6662a77a00050f28ad5689 /tests/Core/Controller/LostControllerTest.php
parentca28df6fcc633a1e6a93bd2e19714e64899cd134 (diff)
downloadnextcloud-server-8d1dd1945fa6f5f382224da6bbd333ded8f2a31f.tar.gz
nextcloud-server-8d1dd1945fa6f5f382224da6bbd333ded8f2a31f.zip
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/Core/Controller/LostControllerTest.php')
-rw-r--r--tests/Core/Controller/LostControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Core/Controller/LostControllerTest.php b/tests/Core/Controller/LostControllerTest.php
index 1e51de649e3..f35d3b37b80 100644
--- a/tests/Core/Controller/LostControllerTest.php
+++ b/tests/Core/Controller/LostControllerTest.php
@@ -653,14 +653,14 @@ class LostControllerTest extends \Test\TestCase {
public function testIsSetPasswordWithoutTokenFailing() {
$this->config->method('getUserValue')
->with('ValidTokenUser', 'core', 'lostpassword', null)
- ->will($this->returnValue(null));
+ ->willReturn('aValidtoken');
$this->userManager->method('get')
->with('ValidTokenUser')
->willReturn($this->existingUser);
$this->crypto->method('decrypt')
->with(
- $this->equalTo(''),
+ $this->equalTo('aValidtoken'),
$this->equalTo('test@example.comSECRET')
)->willThrowException(new \Exception());