2016-01-02 16:43:18 +03:00
|
|
|
|
<?php
|
|
|
|
|
return [
|
|
|
|
|
'language' => 'en-US',
|
|
|
|
|
'controllerMap' => [
|
|
|
|
|
'fixture' => [
|
2016-09-19 01:01:19 +03:00
|
|
|
|
'class' => yii\faker\FixtureController::class,
|
2016-01-02 16:43:18 +03:00
|
|
|
|
'fixtureDataPath' => '@tests/codeception/common/fixtures/data',
|
|
|
|
|
'templatePath' => '@tests/codeception/common/templates/fixtures',
|
|
|
|
|
'namespace' => 'tests\codeception\common\fixtures',
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
'components' => [
|
|
|
|
|
'db' => [
|
2016-07-15 01:03:13 +03:00
|
|
|
|
'dsn' => 'mysql:host=testdb;dbname=ely_accounts_test',
|
|
|
|
|
'username' => 'ely_accounts_tester',
|
|
|
|
|
'password' => 'ely_accounts_tester_password',
|
2016-01-02 16:43:18 +03:00
|
|
|
|
],
|
|
|
|
|
'mailer' => [
|
|
|
|
|
'useFileTransport' => true,
|
|
|
|
|
],
|
|
|
|
|
'urlManager' => [
|
|
|
|
|
'showScriptName' => true,
|
|
|
|
|
],
|
2016-02-14 20:50:10 +03:00
|
|
|
|
'redis' => [
|
2016-07-15 01:03:13 +03:00
|
|
|
|
'hostname' => 'testredis',
|
2016-02-14 20:50:10 +03:00
|
|
|
|
],
|
2016-04-23 21:44:10 +03:00
|
|
|
|
'amqp' => [
|
2016-07-15 01:03:13 +03:00
|
|
|
|
'host' => 'testrabbit',
|
2016-04-23 21:44:10 +03:00
|
|
|
|
'user' => 'ely-accounts-tester',
|
|
|
|
|
'password' => 'tester-password',
|
|
|
|
|
'vhost' => '/account.ely.by/tests',
|
|
|
|
|
],
|
2016-08-29 02:17:45 +03:00
|
|
|
|
'security' => [
|
|
|
|
|
// Для тестов нам не сильно важна безопасность, а вот время прохождения тестов значительно сокращается
|
|
|
|
|
'passwordHashCost' => 4,
|
|
|
|
|
],
|
2016-01-02 16:43:18 +03:00
|
|
|
|
],
|
|
|
|
|
];
|