Jordashiro
Jordashiro

Reputation: 805

Yii variables in Codeception 1.8 tests

i've been wondering if there is a way to use constants/variables from Yii in codeception tests (cests and/or cepts).

Im talking about Yii::app()->... or some properties from the Yii models.

Im using yii 1.14 and codeception 1.8

Upvotes: 0

Views: 75

Answers (1)

Jordashiro
Jordashiro

Reputation: 805

Turned out you can load yii (the same way its loaded in your index file) in _bootstrap.php, you just don't need to call Yii::app()->run(); at the end of it.

Not sure if its the correct way, but so far thats the only working way i know of.

Upvotes: 1

Related Questions