Fix LostControllerTest

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-08-09 15:46:51 +02:00
parent 9717cdfb9e
commit ba7cf03daf
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 0 deletions

View File

@ -261,6 +261,10 @@ class LostControllerTest extends \Test\TestCase {
array(false, $nonExistingUser) array(false, $nonExistingUser)
))); )));
$this->userManager
->method('getByEmail')
->willReturn([]);
// With a non existing user // With a non existing user
$response = $this->lostController->email($nonExistingUser); $response = $this->lostController->email($nonExistingUser);
$expectedResponse = new JSONResponse([ $expectedResponse = new JSONResponse([