diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-09 15:46:51 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-09 15:51:13 +0200 |
commit | ba7cf03daf4028806b9950ea2730c9282596b9a7 (patch) | |
tree | be693b631a230212f2ad9bccc2640de5613c0f42 /tests/Core/Controller | |
parent | 9717cdfb9ed91db270564e2a2c364e78ba3c920e (diff) | |
download | nextcloud-server-ba7cf03daf4028806b9950ea2730c9282596b9a7.tar.gz nextcloud-server-ba7cf03daf4028806b9950ea2730c9282596b9a7.zip |
Fix LostControllerTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r-- | tests/Core/Controller/LostControllerTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Core/Controller/LostControllerTest.php b/tests/Core/Controller/LostControllerTest.php index d7098aafcc2..ef419e40b40 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([ |