From d59a57c383fe0553f57a457734c3d2a67def272b Mon Sep 17 00:00:00 2001 From: Evgeniy Tkachenko Date: Thu, 29 Jan 2015 09:34:42 +0300 Subject: [PATCH] Fix undefined variable $scenario in test files. --- tests/codeception/acceptance/AboutCept.php | 2 ++ tests/codeception/acceptance/ContactCept.php | 2 ++ tests/codeception/acceptance/HomeCept.php | 2 ++ tests/codeception/acceptance/LoginCept.php | 2 ++ tests/codeception/functional/AboutCept.php | 2 ++ tests/codeception/functional/ContactCept.php | 2 ++ tests/codeception/functional/HomeCept.php | 2 ++ tests/codeception/functional/LoginCept.php | 2 ++ 8 files changed, 16 insertions(+) diff --git a/tests/codeception/acceptance/AboutCept.php b/tests/codeception/acceptance/AboutCept.php index 1ef220e..88a5506 100644 --- a/tests/codeception/acceptance/AboutCept.php +++ b/tests/codeception/acceptance/AboutCept.php @@ -2,6 +2,8 @@ use tests\codeception\_pages\AboutPage; +/* @var $scenario Codeception\Scenario */ + $I = new AcceptanceTester($scenario); $I->wantTo('ensure that about works'); AboutPage::openBy($I); diff --git a/tests/codeception/acceptance/ContactCept.php b/tests/codeception/acceptance/ContactCept.php index 4e8ee80..b51d1c0 100644 --- a/tests/codeception/acceptance/ContactCept.php +++ b/tests/codeception/acceptance/ContactCept.php @@ -2,6 +2,8 @@ use tests\codeception\_pages\ContactPage; +/* @var $scenario Codeception\Scenario */ + $I = new AcceptanceTester($scenario); $I->wantTo('ensure that contact works'); diff --git a/tests/codeception/acceptance/HomeCept.php b/tests/codeception/acceptance/HomeCept.php index 369ab7f..1f93535 100644 --- a/tests/codeception/acceptance/HomeCept.php +++ b/tests/codeception/acceptance/HomeCept.php @@ -1,5 +1,7 @@ wantTo('ensure that home page works'); $I->amOnPage(Yii::$app->homeUrl); diff --git a/tests/codeception/acceptance/LoginCept.php b/tests/codeception/acceptance/LoginCept.php index 7575caf..90d0635 100644 --- a/tests/codeception/acceptance/LoginCept.php +++ b/tests/codeception/acceptance/LoginCept.php @@ -2,6 +2,8 @@ use tests\codeception\_pages\LoginPage; +/* @var $scenario Codeception\Scenario */ + $I = new AcceptanceTester($scenario); $I->wantTo('ensure that login works'); diff --git a/tests/codeception/functional/AboutCept.php b/tests/codeception/functional/AboutCept.php index ae7b45b..0926061 100644 --- a/tests/codeception/functional/AboutCept.php +++ b/tests/codeception/functional/AboutCept.php @@ -2,6 +2,8 @@ use tests\codeception\_pages\AboutPage; +/* @var $scenario Codeception\Scenario */ + $I = new FunctionalTester($scenario); $I->wantTo('ensure that about works'); AboutPage::openBy($I); diff --git a/tests/codeception/functional/ContactCept.php b/tests/codeception/functional/ContactCept.php index 4760405..074820a 100644 --- a/tests/codeception/functional/ContactCept.php +++ b/tests/codeception/functional/ContactCept.php @@ -2,6 +2,8 @@ use tests\codeception\_pages\ContactPage; +/* @var $scenario Codeception\Scenario */ + $I = new FunctionalTester($scenario); $I->wantTo('ensure that contact works'); diff --git a/tests/codeception/functional/HomeCept.php b/tests/codeception/functional/HomeCept.php index 80aa551..94efb09 100644 --- a/tests/codeception/functional/HomeCept.php +++ b/tests/codeception/functional/HomeCept.php @@ -1,5 +1,7 @@ wantTo('ensure that home page works'); $I->amOnPage(Yii::$app->homeUrl); diff --git a/tests/codeception/functional/LoginCept.php b/tests/codeception/functional/LoginCept.php index 991d27c..66e7609 100644 --- a/tests/codeception/functional/LoginCept.php +++ b/tests/codeception/functional/LoginCept.php @@ -2,6 +2,8 @@ use tests\codeception\_pages\LoginPage; +/* @var $scenario Codeception\Scenario */ + $I = new FunctionalTester($scenario); $I->wantTo('ensure that login works');