2016-07-14 21:03:28 +03:00
|
|
|
<?php
|
2017-08-07 23:46:37 +03:00
|
|
|
$params = require __DIR__ . '/params.php';
|
|
|
|
$db = require __DIR__ . '/test_db.php';
|
2016-07-14 21:03:28 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Application configuration shared by all test types
|
|
|
|
*/
|
|
|
|
return [
|
|
|
|
'id' => 'basic-tests',
|
2017-07-19 14:56:26 +03:00
|
|
|
'basePath' => dirname(__DIR__),
|
|
|
|
'aliases' => [
|
|
|
|
'@bower' => '@vendor/bower-asset',
|
|
|
|
'@npm' => '@vendor/npm-asset',
|
|
|
|
],
|
2016-07-14 21:03:28 +03:00
|
|
|
'language' => 'en-US',
|
|
|
|
'components' => [
|
2017-05-28 02:21:16 +04:00
|
|
|
'db' => $db,
|
2016-07-14 21:03:28 +03:00
|
|
|
'mailer' => [
|
|
|
|
'useFileTransport' => true,
|
|
|
|
],
|
2016-11-12 16:05:30 +04:00
|
|
|
'assetManager' => [
|
|
|
|
'basePath' => __DIR__ . '/../web/assets',
|
|
|
|
],
|
2016-07-14 21:03:28 +03:00
|
|
|
'urlManager' => [
|
|
|
|
'showScriptName' => true,
|
|
|
|
],
|
2016-07-16 04:13:51 +03:00
|
|
|
'user' => [
|
|
|
|
'identityClass' => 'app\models\User',
|
|
|
|
],
|
2016-07-14 21:03:28 +03:00
|
|
|
'request' => [
|
2016-07-16 04:13:51 +03:00
|
|
|
'cookieValidationKey' => 'test',
|
2016-07-14 21:03:28 +03:00
|
|
|
'enableCsrfValidation' => false,
|
|
|
|
// but if you absolutely need it set cookie domain to localhost
|
|
|
|
/*
|
|
|
|
'csrfCookie' => [
|
|
|
|
'domain' => 'localhost',
|
|
|
|
],
|
|
|
|
*/
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'params' => $params,
|
|
|
|
];
|