Skip to content

Commit

Permalink
click log_out button on confirm form
Browse files Browse the repository at this point in the history
  • Loading branch information
ol0lll committed Jul 4, 2024
1 parent 22d69d8 commit dd442b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function logIn(\stdClass $user)
public function logout()
{
$this->getSession()->visit($this->locatePath($this->getDrupalText('logout_url')));
$this->getSession()->getPage()->findButton($this->getDrupalText('log_out'))->click();
$this->userManager->setCurrentUser(false);

// Log the user out on the backend if possible.
Expand Down

0 comments on commit dd442b7

Please sign in to comment.