Return the disabled user mock instead of the existing

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/17648/head
Daniel Kesselberg 2019-08-18 23:18:39 +07:00 committed by Backportbot
parent 34fa5dae37
commit 7b4d5aa8a9
1 changed files with 1 additions and 1 deletions

@ -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 = [