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