summaryrefslogtreecommitdiffstats
path: root/tests/Core/Controller
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-08-09 15:46:51 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-09 15:51:13 +0200
commitba7cf03daf4028806b9950ea2730c9282596b9a7 (patch)
treebe693b631a230212f2ad9bccc2640de5613c0f42 /tests/Core/Controller
parent9717cdfb9ed91db270564e2a2c364e78ba3c920e (diff)
downloadnextcloud-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.php4
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([