mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
commit
18522d4fb9
|
@ -193,6 +193,16 @@ class BaseFeatureContext extends BehatContext
|
|||
$this->getMinkContext()->getSession()->getDriver()->setCookie("key", $oSession->getKey());
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^I want to logout$/
|
||||
*/
|
||||
public function iWantToLogout()
|
||||
{
|
||||
$this->getMinkContext()->getSession()->getDriver()->setCookie("key", NULL);
|
||||
$this->getMinkContext()->getSession()->getDriver()->setCookie('PHPSESSID', NULL);
|
||||
$this->getMinkContext()->getSession()->reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checking for activity of plugin
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue