Explorar o código

Use URL helper in acceptance tests (#80)

Routing should be handled by URL helper
Michael Bodnarchuk %!s(int64=9) %!d(string=hai) anos
pai
achega
a322cdb0a5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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');