Issue #3094525 by mglaman: UiHelperTrait::drupalLogin breaks when user.login or user.logout route paths altered

merge-requests/2419/head
Alex Pott 2019-11-22 14:25:47 +00:00
parent 80b5dd6b08
commit d510989b8c
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ trait UiHelperTrait {
$this->drupalLogout();
}
$this->drupalGet('user/login');
$this->drupalGet(Url::fromRoute('user.login'));
$this->submitForm([
'name' => $account->getAccountName(),
'pass' => $account->passRaw,
@ -267,7 +267,7 @@ trait UiHelperTrait {
// 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');