Commit 71adca60 by Anton Andersen

Add namespaces to all tests

parent 545a908b
namespace: backend
actor: Tester actor: Tester
paths: paths:
tests: tests tests: tests
......
<?php <?php
use common\tests\_pages\LoginPage; use common\tests\_pages\LoginPage;
use backend\WebGuy;
$I = new WebGuy($scenario); $I = new WebGuy($scenario);
$I->wantTo('ensure login page works'); $I->wantTo('ensure login page works');
......
<?php <?php
use common\tests\_pages\LoginPage; use common\tests\_pages\LoginPage;
use backend\TestGuy;
$I = new TestGuy($scenario); $I = new TestGuy($scenario);
$I->wantTo('ensure login page works'); $I->wantTo('ensure login page works');
......
namespace: common
actor: Tester actor: Tester
paths: paths:
tests: tests tests: tests
......
namespace: console
actor: Tester actor: Tester
paths: paths:
tests: tests tests: tests
......
namespace: frontend
actor: Tester actor: Tester
paths: paths:
tests: tests tests: tests
......
<?php <?php
use frontend\tests\_pages\AboutPage; use frontend\tests\_pages\AboutPage;
use frontend\WebGuy;
$I = new WebGuy($scenario); $I = new WebGuy($scenario);
$I->wantTo('ensure that about works'); $I->wantTo('ensure that about works');
......
<?php <?php
use frontend\tests\_pages\ContactPage; use frontend\tests\_pages\ContactPage;
use frontend\WebGuy;
$I = new WebGuy($scenario); $I = new WebGuy($scenario);
$I->wantTo('ensure that contact works'); $I->wantTo('ensure that contact works');
......
<?php <?php
use frontend\WebGuy;
$I = new WebGuy($scenario); $I = new WebGuy($scenario);
$I->wantTo('ensure that home page works'); $I->wantTo('ensure that home page works');
$I->amOnPage(Yii::$app->homeUrl); $I->amOnPage(Yii::$app->homeUrl);
......
<?php <?php
use common\tests\_pages\LoginPage; use common\tests\_pages\LoginPage;
use frontend\WebGuy;
$I = new WebGuy($scenario); $I = new WebGuy($scenario);
$I->wantTo('ensure login page works'); $I->wantTo('ensure login page works');
......
<?php <?php
use frontend\tests\_pages\AboutPage; use frontend\tests\_pages\AboutPage;
use frontend\TestGuy;
$I = new TestGuy($scenario); $I = new TestGuy($scenario);
$I->wantTo('ensure that about works'); $I->wantTo('ensure that about works');
......
<?php <?php
use frontend\tests\_pages\ContactPage; use frontend\tests\_pages\ContactPage;
use frontend\TestGuy;
$I = new TestGuy($scenario); $I = new TestGuy($scenario);
$I->wantTo('ensure that contact works'); $I->wantTo('ensure that contact works');
......
<?php <?php
use frontend\TestGuy;
$I = new TestGuy($scenario); $I = new TestGuy($scenario);
$I->wantTo('ensure that home page works'); $I->wantTo('ensure that home page works');
$I->amOnPage(Yii::$app->homeUrl); $I->amOnPage(Yii::$app->homeUrl);
......
<?php <?php
use common\tests\_pages\LoginPage; use common\tests\_pages\LoginPage;
use frontend\TestGuy;
$I = new TestGuy($scenario); $I = new TestGuy($scenario);
$I->wantTo('ensure login page works'); $I->wantTo('ensure login page works');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment