Skip to content

Commit

Permalink
Merge pull request #12 from smichae/master
Browse files Browse the repository at this point in the history
Fix ModuleException parameters, handle undefined
  • Loading branch information
Naktibalda authored Aug 28, 2020
2 parents 5934f8e + 8351b6b commit 0e33d34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Codeception/Module/Yii2.php
Original file line number Diff line number Diff line change
Expand Up @@ -886,13 +886,13 @@ public function _initializeSession()
public function _backupSession()
{
if (isset(Yii::$app) && Yii::$app->session->useCustomStorage) {
throw new ModuleException("Yii2 MultiSession only supports the default session backend.");
throw new ModuleException($this, "Yii2 MultiSession only supports the default session backend.");
}
return [
'clientContext' => $this->client->getContext(),
'headers' => $this->headers,
'cookie' => $_COOKIE,
'session' => $_SESSION,
'cookie' => isset($_COOKIE) ? $_COOKIE : [],
'session' => isset($_SESSION) ? $_SESSION : [],
];
}

Expand Down

0 comments on commit 0e33d34

Please sign in to comment.