Use URL helper in acceptance tests (#80)

Routing should be handled by URL helper
This commit is contained in:
Michael Bodnarchuk 2016-08-04 14:32:04 +03:00 committed by Alexander Makarov
parent 74361f1d71
commit a322cdb0a5

View File

@ -1,10 +1,11 @@
<?php
use yii\helpers\Url as Url;
class HomeCest
{
public function ensureThatHomePageWorks(AcceptanceTester $I)
{
$I->amOnPage('index.php?r=site%2Findex');
$I->amOnPage(Url::toRoute('/site/index'));
$I->see('My Company');
$I->seeLink('About');