When I run my functional test
phpunit functional/LoginTest.php
It starts my page in browser
$this->open('mysite.com/');// can't post links with http on this forum
But it uses
index.php
instead of
index-test.php
and I have no idea why.
In
WebTestCase
class there is a constant
define('TEST_BASE_URL','mysite.com/index-test.php/');
and the setUp method of WebTestCase
protected function setUp()
{
parent::setUp();
$this->setBrowser('*googlechrome');
$this->setBrowserUrl(TEST_BASE_URL);
}
Please, tell me why does it keep calling
index.php
instead of
index-test.php
SOLVED, problem was in absolute url in open function