You are here

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

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.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()
  4. 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()
  5. 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()

Logout from the current session.

Varbase Context #varbase.

Example: When I logout.

@When /^I logout$/

File

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

Class

VarbaseContext
Defines application features from the specific context.

Code

public function iLogout() {

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