Issue #3094525 by mglaman: UiHelperTrait::drupalLogin breaks when user.login or user.logout route paths altered
parent
80b5dd6b08
commit
d510989b8c
|
@ -243,7 +243,7 @@ trait UiHelperTrait {
|
||||||
$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 @@ trait UiHelperTrait {
|
||||||
// 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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue