[ 'dsn' => 'mysql:host=127.0.0.1;dbname=mdm_admin_test', 'username' => 'travis', 'password' => '', ], 'sqlite' => [ //'dsn' => 'sqlite::memory:', 'dsn' => 'sqlite:@runtime/mdm_admin_test.sqlite', ], 'pgsql' => [ 'dsn' => 'pgsql:host=localhost;dbname=mdm_admin_test;port=5432;', 'username' => 'postgres', 'password' => 'postgres', ], ]; $driver = 'mysql'; if (is_file(__DIR__ . '/db-local.php')) { include __DIR__ . '/db-local.php'; } return array_merge(['class' => 'yii\db\Connection'], $databases[$driver]);