1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00

Merge pull request #28 from vatseek/test

added logout function
This commit is contained in:
Stepan Tanasiychuk 2013-04-05 06:49:41 -07:00
commit 18522d4fb9

View file

@ -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
*