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
No related merge requests found
...@@ -243,7 +243,7 @@ protected function drupalLogin(AccountInterface $account) { ...@@ -243,7 +243,7 @@ protected function drupalLogin(AccountInterface $account) {
$this->drupalLogout(); $this->drupalLogout();
} }
$this->drupalGet('user/login'); $this->drupalGet(Url::fromRoute('user.login'));
$this->submitForm([ $this->submitForm([
'name' => $account->getAccountName(), 'name' => $account->getAccountName(),
'pass' => $account->passRaw, 'pass' => $account->passRaw,
...@@ -267,7 +267,7 @@ protected function drupalLogout() { ...@@ -267,7 +267,7 @@ protected function drupalLogout() {
// idea being if you were properly logged out you should be seeing a login // idea being if you were properly logged out you should be seeing a login
// screen. // screen.
$assert_session = $this->assertSession(); $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('name');
$assert_session->fieldExists('pass'); $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