diff --git a/src/SilverStripe/BehatExtension/Context/LoginContext.php b/src/SilverStripe/BehatExtension/Context/LoginContext.php index f9be352..e96c5a0 100644 --- a/src/SilverStripe/BehatExtension/Context/LoginContext.php +++ b/src/SilverStripe/BehatExtension/Context/LoginContext.php @@ -110,7 +110,8 @@ class LoginContext extends BehatContext */ public function stepIAmNotLoggedIn() { - $this->getSession()->reset(); + $c = $this->getMainContext(); + $this->getSession()->visit($c->joinUrlParts($c->getBaseUrl(), 'Security/logout')); } /**