Skip to content

Commit

Permalink
Merge pull request #91 from michaelarnauts/multisession-no-session
Browse files Browse the repository at this point in the history
Fix parallel sessions with `$I->haveFriend()` when no session is active
  • Loading branch information
SamMousa committed Nov 15, 2023
2 parents 70ad754 + 3addfd6 commit d819def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Module/Yii2.php
Expand Up @@ -897,7 +897,7 @@ public function _initializeSession(): void
*/
public function _backupSession(): array
{
if (isset(Yii::$app) && Yii::$app->session->useCustomStorage) {
if (isset(Yii::$app) && Yii::$app->has('session', true) && Yii::$app->session->useCustomStorage) {
throw new ModuleException($this, "Yii2 MultiSession only supports the default session backend.");
}
return [
Expand Down

0 comments on commit d819def

Please sign in to comment.