Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added logout function #260

Merged
merged 2 commits into from

3 participants

Stepan Tanasiychuk LS-SOFT Vadim Gumennyj
Stepan Tanasiychuk

No description provided.

LS-SOFT livestreet merged commit b50fcac into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. Vadim Gumennyj

    added logout function

    vatseek authored
  2. Stepan Tanasiychuk

    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
10 tests/behat/features/bootstrap/BaseFeatureContext.php
View
@@ -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.