diff --git a/tests/Core/Controller/LostControllerTest.php b/tests/Core/Controller/LostControllerTest.php index d7098aafcc..ef419e40b4 100644 --- a/tests/Core/Controller/LostControllerTest.php +++ b/tests/Core/Controller/LostControllerTest.php @@ -261,6 +261,10 @@ class LostControllerTest extends \Test\TestCase { array(false, $nonExistingUser) ))); + $this->userManager + ->method('getByEmail') + ->willReturn([]); + // With a non existing user $response = $this->lostController->email($nonExistingUser); $expectedResponse = new JSONResponse([