Qiang Xue
11 years ago
6 changed files with 58 additions and 48 deletions
@ -0,0 +1,11 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* application configurations shared by all test types |
||||||
|
*/ |
||||||
|
return [ |
||||||
|
'components' => [ |
||||||
|
'mail' => [ |
||||||
|
'useFileTransport' => true, |
||||||
|
], |
||||||
|
], |
||||||
|
]; |
@ -1,16 +1,19 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
use yii\helpers\ArrayHelper; |
return yii\helpers\ArrayHelper::merge( |
||||||
|
require(__DIR__ . '/../../config/web.php'), |
||||||
$config = require(__DIR__ . '/../../config/web.php'); |
require(__DIR__ . '/../_config.php'), |
||||||
|
[ |
||||||
return ArrayHelper::merge($config, [ |
|
||||||
'components' => [ |
'components' => [ |
||||||
'db' => [ |
'db' => [ |
||||||
'dsn' => 'mysql:host=localhost;dbname=yii2_basic_acceptance', |
'dsn' => 'mysql:host=localhost;dbname=yii2_basic_acceptance', |
||||||
], |
], |
||||||
|
'mail' => [ |
||||||
|
'useFileTransport' => true, |
||||||
|
], |
||||||
'urlManager' => [ |
'urlManager' => [ |
||||||
'showScriptName' => true, |
'showScriptName' => true, |
||||||
], |
], |
||||||
], |
], |
||||||
]); |
] |
||||||
|
); |
||||||
|
@ -1,20 +1,23 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
use yii\helpers\ArrayHelper; |
|
||||||
|
|
||||||
// set correct script paths |
// set correct script paths |
||||||
$_SERVER['SCRIPT_FILENAME'] = TEST_ENTRY_FILE; |
$_SERVER['SCRIPT_FILENAME'] = TEST_ENTRY_FILE; |
||||||
$_SERVER['SCRIPT_NAME'] = TEST_ENTRY_URL; |
$_SERVER['SCRIPT_NAME'] = TEST_ENTRY_URL; |
||||||
|
|
||||||
$config = require(__DIR__ . '/../../config/web.php'); |
return yii\helpers\ArrayHelper::merge( |
||||||
|
require(__DIR__ . '/../../config/web.php'), |
||||||
return ArrayHelper::merge($config, [ |
require(__DIR__ . '/../_config.php'), |
||||||
|
[ |
||||||
'components' => [ |
'components' => [ |
||||||
'db' => [ |
'db' => [ |
||||||
'dsn' => 'mysql:host=localhost;dbname=yii2_basic_functional', |
'dsn' => 'mysql:host=localhost;dbname=yii2_basic_functional', |
||||||
], |
], |
||||||
|
'mail' => [ |
||||||
|
'useFileTransport' => true, |
||||||
|
], |
||||||
'urlManager' => [ |
'urlManager' => [ |
||||||
'showScriptName' => true, |
'showScriptName' => true, |
||||||
], |
], |
||||||
], |
], |
||||||
]); |
] |
||||||
|
); |
||||||
|
Loading…
Reference in new issue