From 7b4d5aa8a9689b5ffe6b90dcbdadba42f724caba Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sun, 18 Aug 2019 23:18:39 +0200 Subject: [PATCH] Return the disabled user mock instead of the existing Signed-off-by: Daniel Kesselberg --- tests/Core/Controller/LostControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Core/Controller/LostControllerTest.php b/tests/Core/Controller/LostControllerTest.php index 8500819a9c..e289d6e7b6 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 = [