mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix LostControllerTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
9717cdfb9e
commit
ba7cf03daf
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue