2016-07-14 19:20:28 +03:00
|
|
|
<?php
|
2016-08-04 14:32:04 +03:00
|
|
|
use yii\helpers\Url as Url;
|
2016-07-14 19:20:28 +03:00
|
|
|
|
|
|
|
class HomeCest
|
|
|
|
{
|
|
|
|
public function ensureThatHomePageWorks(AcceptanceTester $I)
|
|
|
|
{
|
2016-08-04 14:32:04 +03:00
|
|
|
$I->amOnPage(Url::toRoute('/site/index'));
|
2016-07-14 19:20:28 +03:00
|
|
|
$I->see('My Company');
|
|
|
|
|
|
|
|
$I->seeLink('About');
|
|
|
|
$I->click('About');
|
|
|
|
|
|
|
|
$I->see('This is the About page.');
|
|
|
|
}
|
|
|
|
}
|