diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-06 21:27:28 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-09 15:12:02 +0200 |
commit | 3bd104ef7c32ca4e1616c9caade1fb59dd1aab29 (patch) | |
tree | 0695d50df73efc27a48ec0d30a6f9eb208708bcd | |
parent | 70d42afb936293e5f8caefd0ee2224c4c5f0bcf3 (diff) | |
download | nextcloud-server-3bd104ef7c32ca4e1616c9caade1fb59dd1aab29.tar.gz nextcloud-server-3bd104ef7c32ca4e1616c9caade1fb59dd1aab29.zip |
Fix LoginController
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | tests/Core/Controller/LoginControllerTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php index 493bade9dd8..169beff2b9d 100644 --- a/tests/Core/Controller/LoginControllerTest.php +++ b/tests/Core/Controller/LoginControllerTest.php @@ -291,6 +291,10 @@ class LoginControllerTest extends TestCase { $this->userManager->expects($this->once()) ->method('checkPasswordNoLogging') ->will($this->returnValue(false)); + $this->userManager->expects($this->once()) + ->method('getByEmail') + ->with($user) + ->willReturn([]); $this->urlGenerator->expects($this->once()) ->method('linkToRoute') ->with('core.login.showLoginForm', [ |