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 #23 from vatseek/patch-2

Update tests/behat/features/bootstrap/BaseFeatureContext.php
This commit is contained in:
Stepan Tanasiychuk 2012-12-18 01:04:58 -08:00
commit 7db26689cf

View file

@ -183,7 +183,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());