php - Yii selenium functional testing issue -



when run functional test

phpunit functional/logintest.php 

it starts page in browser

$this->open('http://mysite.com/');

but uses index.php instead of index-test.php , have no idea why.
in webtestcase class there constant

define('test_base_url','http://mysite.com/index-test.php/');

and setup method of webtestcase

protected function setup()     {         parent::setup();         $this->setbrowser('*googlechrome');         $this->setbrowserurl(test_base_url);     } 

please, tell me why keep calling index.php instead of index-test.php?

because $this->open('http://mysite.com/'); absolute url. if use it, must so: $this->open('http://mysite.com/index-test.php');

if use relative url, must so: $this->open(''); - open test_base_url

and once again reread http://www.yiiframework.com/doc/guide/1.1/en/test.functional


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -