diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticatorTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticatorTest.php index d162f99131399..a0c8fc3f0dcdf 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticatorTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticatorTest.php @@ -126,13 +126,13 @@ public function testCustomFailureHandler() $client->request('POST', '/firewall1/login', [ '_username' => 'jane@example.org', - '_password' => '', + '_password' => 'wrong', ]); $this->assertResponseRedirects('http://localhost/firewall1/login'); $client->request('POST', '/firewall1/dummy_login', [ '_username' => 'jane@example.org', - '_password' => '', + '_password' => 'wrong', ]); $this->assertResponseRedirects('http://localhost/firewall1/dummy_login'); } diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/CsrfFormLoginTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/CsrfFormLoginTest.php index 8c79b105491a4..116eca827b1e6 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/CsrfFormLoginTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/CsrfFormLoginTest.php @@ -68,6 +68,8 @@ public function testFormLoginWithInvalidCsrfToken($options) }); $form = $client->request('GET', '/login')->selectButton('login')->form(); + $form['user_login[username]'] = 'johannes'; + $form['user_login[password]'] = 'test'; $form['user_login[_token]'] = ''; $client->submit($form);