Commit 576652b6 authored by catch's avatar catch
Browse files

Issue #3124769 by Chi, msuthars: Fix hardcoded destination in UiHelperTrait::drupalLogout()

parent d4a14f63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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');