Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

added logout function #260

Merged
merged 2 commits into from

3 participants

@stfalcon

No description provided.

@livestreet livestreet merged commit b50fcac into livestreet:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. @vatseek

    added logout function

    vatseek authored
  2. @stfalcon

    Merge pull request #28 from vatseek/test

    stfalcon authored
    added logout function
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/behat/features/bootstrap/BaseFeatureContext.php
View
10 tests/behat/features/bootstrap/BaseFeatureContext.php
@@ -194,6 +194,16 @@ public function iWantToLoginAs($sUserLogin)
}
/**
+ * @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
*
* @Then /^check is plugin active "([^"]*)"$/
Something went wrong with that request. Please try again.