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
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-08-19 00:18:39 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-10-22 22:15:14 +0300
commit7b4d5aa8a9689b5ffe6b90dcbdadba42f724caba (patch)
tree0c0b2c88aba691d687e6cb276606f3f9403df11d
parent34fa5dae37145a95aaa5c51e42ed9a1b57379de7 (diff)
Return the disabled user mock instead of the existing
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--tests/Core/Controller/LostControllerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Core/Controller/LostControllerTest.php b/tests/Core/Controller/LostControllerTest.php
index 8500819a9ca..e289d6e7b64 100644
--- a/tests/Core/Controller/LostControllerTest.php
+++ b/tests/Core/Controller/LostControllerTest.php
@@ -700,7 +700,7 @@ class LostControllerTest extends \Test\TestCase {
->willReturn('encryptedData');
$this->userManager->method('get')
->with('DisabledUser')
- ->willReturn($this->existingUser);
+ ->willReturn($user);
$response = $this->lostController->setPassword('TheOnlyAndOnlyOneTokenToResetThePassword', 'DisabledUser', 'NewPassword', true);
$expectedResponse = [