Skip to content

Yii::$app null when called inside haveFriend does #114

Closed
@smichae

Description

@smichae

v1.1.11 introduced new behavior where Yii::$app is null inside a "does" function call by a "friend". I'm not sure if this is intended behavior, but when the a friend's 'does' function is called, it calls Codeception\Module\Yii2 _initializeSession. Up until v1.1.10, this called the client->removeContext, but now it calls client->restart. Restart sets Yii2::$app to null, and in the "does" friend flow, startApp() is not called. This doesn't seem to be intended behavior since tests are encouraged to use Yii2::$app directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions