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

Merge pull request #21 from vatseek/patch-1

Update tests/behat/features/bootstrap/BaseFeatureContext.php
This commit is contained in:
Stepan Tanasiychuk 2012-12-10 06:34:23 -08:00
commit 166e6602c2

View file

@ -160,7 +160,7 @@ class BaseFeatureContext extends BehatContext
throw new ExpectationException( sprintf('User %s not found', $sUserLogin), $this->getMinkContext()->getSession());
}
$this->getEngine()->User_Authorization($oUser, true);
$this->getEngine()->User_Authorization($oUser, false);
$oSession = $this->getEngine()->User_GetSessionByUserId($oUser->getId());
if (!$oSession) {
throw new ExpectationException( 'Session non created', $this->getMinkContext()->getSession());