HomeCept.php 315 Bytes
Newer Older
1
<?php
2
use tests\codeception\frontend\AcceptanceTester;
3

4 5
/* @var $scenario Codeception\Scenario */

6
$I = new AcceptanceTester($scenario);
7
$I->wantTo('ensure that home page works');
8
$I->amOnPage(Yii::$app->homeUrl);
9 10 11 12
$I->see('My Company');
$I->seeLink('About');
$I->click('About');
$I->see('This is the About page.');