Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-08-09 16:46:51 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-09 16:51:13 +0300
commitba7cf03daf4028806b9950ea2730c9282596b9a7 (patch)
treebe693b631a230212f2ad9bccc2640de5613c0f42 /tests
parent9717cdfb9ed91db270564e2a2c364e78ba3c920e (diff)
Fix LostControllerTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-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([