I have a problem with simple functional test:
public function testCat()
{
$this->open('category');
$this->waitForTextPresent('Category1');
}
In config/test.php I configured connection to test database:
<?php
return CMap::mergeArray(
require(dirname(__FILE__).'/main.php'),
array(
'components'=>array(
'fixture'=>array(
'class'=>'system.test.CDbFixtureManager',
),
/* uncomment the following to provide test database connection */
'db'=>array(
'connectionString'=>'mysql:host=localhost;dbname=wtest',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'password',
'charset' => 'utf8',),
),
)
);
But Selenium use production database instead test database, even when I removed productiona database configuration from config/main.php. It looks like Selenium saved production database configuration and use it all the time even when it opens /index-test.php/category. When I changes fixtures it updates test database, only when web browser opens it looks line data are from production database, not from test database.
Could someone help me?