Return the disabled user mock instead of the existing

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-08-18 23:18:39 +02:00
parent e32b2c4b76
commit 7f7c6e49b6
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ class LostControllerTest extends \Test\TestCase {
->willReturn('encryptedData'); ->willReturn('encryptedData');
$this->userManager->method('get') $this->userManager->method('get')
->with('DisabledUser') ->with('DisabledUser')
->willReturn($this->existingUser); ->willReturn($user);
$response = $this->lostController->setPassword('TheOnlyAndOnlyOneTokenToResetThePassword', 'DisabledUser', 'NewPassword', true); $response = $this->lostController->setPassword('TheOnlyAndOnlyOneTokenToResetThePassword', 'DisabledUser', 'NewPassword', true);
$expectedResponse = [ $expectedResponse = [