Fix LoginController

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-08-06 21:27:28 +02:00
parent 70d42afb93
commit 3bd104ef7c
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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', [