Skip to content

Commit 5d620bd

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Security][Tests] Update functional tests to better reflect end-user scenarios [Clock] Add PHPUnit 10 attributes [AssetMapper] Fix `JavaScriptImportPathCompiler` regression in regex [HttpClient] Fix deprecation on PHP 8.3 [Mailer][Brevo] Remove tags from mandatory event arguments
2 parents 1755fb5 + b7825ec commit 5d620bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tests/Functional/AuthenticatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ public function testCustomFailureHandler()
111111

112112
$client->request('POST', '/firewall1/login', [
113113
'_username' => '[email protected]',
114-
'_password' => '',
114+
'_password' => 'wrong',
115115
]);
116116
$this->assertResponseRedirects('http://localhost/firewall1/login');
117117

118118
$client->request('POST', '/firewall1/dummy_login', [
119119
'_username' => '[email protected]',
120-
'_password' => '',
120+
'_password' => 'wrong',
121121
]);
122122
$this->assertResponseRedirects('http://localhost/firewall1/dummy_login');
123123
}

Tests/Functional/CsrfFormLoginTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public function testFormLoginWithInvalidCsrfToken($options)
6868
});
6969

7070
$form = $client->request('GET', '/login')->selectButton('login')->form();
71+
$form['user_login[username]'] = 'johannes';
72+
$form['user_login[password]'] = 'test';
7173
$form['user_login[_token]'] = '';
7274
$client->submit($form);
7375

0 commit comments

Comments
 (0)