test.php 545 B

12345678910111213141516171819202122232425
  1. <?php
  2. return CMap::mergeArray(
  3. require(dirname(__FILE__).'/main.php'),
  4. array(
  5. 'components'=>array(
  6. 'fixture'=>array(
  7. 'class'=>'system.test.CDbFixtureManager',
  8. ),
  9. 'db'=>array(
  10. 'connectionString'=>'sqlite:'.dirname(__FILE__).'/../data/blog-test.db',
  11. ),
  12. // uncomment the following to use a MySQL database
  13. /*
  14. 'db'=>array(
  15. 'connectionString' => 'mysql:host=localhost;dbname=blog-test',
  16. 'emulatePrepare' => true,
  17. 'username' => 'root',
  18. 'password' => '',
  19. 'charset' => 'utf8',
  20. ),
  21. */
  22. ),
  23. )
  24. );