1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. $config = yii\helpers\ArrayHelper::merge(
  3. require(__DIR__ . '/main.php'),
  4. require(__DIR__ . '/main-local.php'),
  5. [
  6. 'id' => 'app-tests',
  7. 'components' => [
  8. 'db' => [
  9. 'class' => 'yii\db\Connection',
  10. 'dsn' => 'mysql:host=localhost;dbname=reservation_pain_tests',
  11. 'username' => 'keun',
  12. 'password' => 'k&mysql*$=',
  13. 'charset' => 'utf8',
  14. ],
  15. 'mailer' => [
  16. 'useFileTransport' => true,
  17. ],
  18. 'urlManager' => [
  19. 'showScriptName' => true,
  20. ],
  21. ],
  22. 'controllerMap' => [
  23. 'fixture' => [
  24. 'class' => 'yii\faker\FixtureController',
  25. 'fixtureDataPath' => '@tests/codeception/common/fixtures/data',
  26. 'templatePath' => '@tests/codeception/common/templates/fixtures',
  27. 'namespace' => 'tests\codeception\common\fixtures',
  28. ],
  29. //'site' => 'app\controllers\SiteController',
  30. //'frontend' => 'app\controllers\FrontendController',
  31. ],
  32. ]
  33. );
  34. return $config;