yii2-netdisk/config/test.php

36 lines
908 B
PHP
Raw Normal View History

2016-07-15 02:03:28 +08:00
<?php
$params = require(__DIR__ . '/params.php');
2016-07-16 09:13:51 +08:00
$dbParams = require(__DIR__ . '/test_db.php');
2016-07-15 02:03:28 +08:00
/**
* Application configuration shared by all test types
*/
return [
'id' => 'basic-tests',
'basePath' => dirname(__DIR__),
'language' => 'en-US',
'components' => [
'db' => $dbParams,
'mailer' => [
'useFileTransport' => true,
],
'urlManager' => [
'showScriptName' => true,
],
2016-07-16 09:13:51 +08:00
'user' => [
'identityClass' => 'app\models\User',
],
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',
],
*/
],
],
'params' => $params,
];