Adjusted test configs structure

This commit is contained in:
Alexander Makarov
2014-08-17 18:45:58 +04:00
parent 28091ed2e8
commit c33214b35d
50 changed files with 133 additions and 174 deletions

View File

@ -7,5 +7,5 @@ namespace console\tests\unit;
*/
class DbTestCase extends \yii\codeception\DbTestCase
{
public $appConfig = '@console/tests/unit/_config.php';
public $appConfig = '@codeception/config/console/config.php';
}

View File

@ -7,5 +7,5 @@ namespace console\tests\unit;
*/
class TestCase extends \yii\codeception\TestCase
{
public $appConfig = '@console/tests/unit/_config.php';
public $appConfig = '@codeception/config/console/config.php';
}

View File

@ -1,16 +0,0 @@
<?php
return yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../../../common/config/main.php'),
require(__DIR__ . '/../../../common/config/main-local.php'),
require(__DIR__ . '/../../config/main.php'),
require(__DIR__ . '/../../config/main-local.php'),
require(__DIR__ . '/../_config.php'),
[
'components' => [
'db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2_advanced_unit',
],
],
]
);