浏览代码

Use URL helper in acceptance tests (#80)

Routing should be handled by URL helper
Michael Bodnarchuk 9 年之前
父节点
当前提交
a322cdb0a5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/acceptance/HomeCest.php

+ 2 - 1
tests/acceptance/HomeCest.php

@@ -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');