Use URL helper in acceptance tests (#80)
Routing should be handled by URL helper
This commit is contained in:
parent
74361f1d71
commit
a322cdb0a5
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user