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
|
<?php
|
||||||
|
use yii\helpers\Url as Url;
|
||||||
|
|
||||||
class HomeCest
|
class HomeCest
|
||||||
{
|
{
|
||||||
public function ensureThatHomePageWorks(AcceptanceTester $I)
|
public function ensureThatHomePageWorks(AcceptanceTester $I)
|
||||||
{
|
{
|
||||||
$I->amOnPage('index.php?r=site%2Findex');
|
$I->amOnPage(Url::toRoute('/site/index'));
|
||||||
$I->see('My Company');
|
$I->see('My Company');
|
||||||
|
|
||||||
$I->seeLink('About');
|
$I->seeLink('About');
|
||||||
|
Loading…
Reference in New Issue
Block a user