Skip to content

Commit a322cdb

Browse files
DavertMiksamdark
authored andcommitted
Use URL helper in acceptance tests (#80)
Routing should be handled by URL helper
1 parent 74361f1 commit a322cdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/acceptance/HomeCest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
2+
use yii\helpers\Url as Url;
23

34
class HomeCest
45
{
56
public function ensureThatHomePageWorks(AcceptanceTester $I)
67
{
7-
$I->amOnPage('index.php?r=site%2Findex');
8+
$I->amOnPage(Url::toRoute('/site/index'));
89
$I->see('My Company');
910

1011
$I->seeLink('About');

0 commit comments

Comments
 (0)