Loading core/tests/Drupal/Tests/UiHelperTrait.php +2 −1 Original line number Diff line number Diff line Loading @@ -267,7 +267,8 @@ protected function drupalLogout() { // idea being if you were properly logged out you should be seeing a login // screen. $assert_session = $this->assertSession(); $this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => 'user']])); $destination = Url::fromRoute('user.page')->toString(); $this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => $destination]])); $assert_session->fieldExists('name'); $assert_session->fieldExists('pass'); Loading Loading
core/tests/Drupal/Tests/UiHelperTrait.php +2 −1 Original line number Diff line number Diff line Loading @@ -267,7 +267,8 @@ protected function drupalLogout() { // idea being if you were properly logged out you should be seeing a login // screen. $assert_session = $this->assertSession(); $this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => 'user']])); $destination = Url::fromRoute('user.page')->toString(); $this->drupalGet(Url::fromRoute('user.logout', [], ['query' => ['destination' => $destination]])); $assert_session->fieldExists('name'); $assert_session->fieldExists('pass'); Loading