Skip to content
Snippets Groups Projects
Unverified Commit d510989b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3094525 by mglaman: UiHelperTrait::drupalLogin breaks when user.login...

Issue #3094525 by mglaman: UiHelperTrait::drupalLogin breaks when user.login or user.logout route paths altered
parent 80b5dd6b
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards
......@@ -243,7 +243,7 @@ protected function drupalLogin(AccountInterface $account) {
$this->drupalLogout();
}
$this->drupalGet('user/login');
$this->drupalGet(Url::fromRoute('user.login'));
$this->submitForm([
'name' => $account->getAccountName(),
'pass' => $account->passRaw,
......@@ -267,7 +267,7 @@ protected function drupalLogout() {
// idea being if you were properly logged out you should be seeing a login
// screen.
$assert_session = $this->assertSession();
$this->drupalGet('user/logout', ['query' => ['destination' => 'user']]);
$this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => 'user']]));
$assert_session->fieldExists('name');
$assert_session->fieldExists('pass');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment