Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
wouterj committed Mar 2, 2024
2 parents 1755fb5 + b7825ec commit 5d620bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Functional/AuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,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');
}
Expand Down
2 changes: 2 additions & 0 deletions Tests/Functional/CsrfFormLoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5d620bd

Please sign in to comment.