Skip to content

Commit

Permalink
Merge pull request #448 from jhedstrom/443-fast-logout-follow-up
Browse files Browse the repository at this point in the history
Further use of fast logout.
  • Loading branch information
jhedstrom authored Dec 15, 2017
2 parents 4fd9abc + ce99d97 commit 9cf2131
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Drupal/DrupalExtension/Context/RawDrupalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,11 @@ public function cleanUsers()
}
$this->getDriver()->processBatch();
$this->userManager->clearUsers();
if ($this->loggedIn()) {
// If the authentication manager supports logout, no need to check if the user is logged in.
if ($this->getAuthenticationManager() instanceof FastLogoutInterface) {
$this->logout(true);
} elseif ($this->loggedIn()) {
$this->logout();
}
}
}
Expand Down

0 comments on commit 9cf2131

Please sign in to comment.