Fix LostControllerTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
9717cdfb9e
commit
ba7cf03daf
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue