yii2-netdisk/tests/acceptance/HomeCest.php
Michael Bodnarchuk a322cdb0a5 Use URL helper in acceptance tests (#80)
Routing should be handled by URL helper
2016-08-04 14:32:04 +03:00

17 lines
341 B
PHP

<?php
use yii\helpers\Url as Url;
class HomeCest
{
public function ensureThatHomePageWorks(AcceptanceTester $I)
{
$I->amOnPage(Url::toRoute('/site/index'));
$I->see('My Company');
$I->seeLink('About');
$I->click('About');
$I->see('This is the About page.');
}
}