You are here

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

Same name and namespace in other branches
  1. 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iLogout()
  2. 8.5 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()

Logout from the current session.

Varbase Context #varbase.

Example: When I logout.

@When /^I logout$/

File

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

Class

VarbaseContext
Defines application features from the specific context.

Code

public function iLogout() {

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