Pārlūkot izejas kodu

Fix undefined variable $scenario in test files.

Evgeniy Tkachenko 11 gadi atpakaļ
vecāks
revīzija
d59a57c383

+ 2 - 0
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);

+ 2 - 0
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');
 

+ 2 - 0
tests/codeception/acceptance/HomeCept.php

@@ -1,5 +1,7 @@
 <?php
 
+/* @var $scenario Codeception\Scenario */
+
 $I = new AcceptanceTester($scenario);
 $I->wantTo('ensure that home page works');
 $I->amOnPage(Yii::$app->homeUrl);

+ 2 - 0
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');
 

+ 2 - 0
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);

+ 2 - 0
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');
 

+ 2 - 0
tests/codeception/functional/HomeCept.php

@@ -1,5 +1,7 @@
 <?php
 
+/* @var $scenario Codeception\Scenario */
+
 $I = new FunctionalTester($scenario);
 $I->wantTo('ensure that home page works');
 $I->amOnPage(Yii::$app->homeUrl);

+ 2 - 0
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');