From ba7cf03daf4028806b9950ea2730c9282596b9a7 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 9 Aug 2017 15:46:51 +0200 Subject: [PATCH] Fix LostControllerTest Signed-off-by: Roeland Jago Douma --- tests/Core/Controller/LostControllerTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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([