Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  [Security][Tests] Update functional tests to better reflect end-user scenarios
  [HttpClient] Fix deprecation on PHP 8.3
  • Loading branch information
wouterj committed Mar 2, 2024
2 parents dec0c2b + 6773ef1 commit b7825ec
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 @@ -126,13 +126,13 @@ public function testCustomFailureHandler()

$client->request('POST', '/firewall1/login', [
'_username' => '[email protected]',
'_password' => '',
'_password' => 'wrong',
]);
$this->assertResponseRedirects('http://localhost/firewall1/login');

$client->request('POST', '/firewall1/dummy_login', [
'_username' => '[email protected]',
'_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 b7825ec

Please sign in to comment.