You are here

public function VarbaseContext::iLogout in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.5

Same name and namespace in other branches
  1. 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()
  2. 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()
  3. 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()
  4. 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()
  5. 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()

#varbase : To logout from the current session.

Example: When I logout

@When /^I logout$/

File

tests/features/bootstrap/VarbaseContext.php, line 109

Class

VarbaseContext
Defines application features from the specific context.

Code

public function iLogout() {

  // Logout if I am logged in.
  if ($this
    ->loggedIn()) {
    $this
      ->logout();
  }
}