diff --git a/apps/basic/tests/unit.suite.dist.yml b/apps/basic/tests/unit.suite.yml similarity index 100% rename from apps/basic/tests/unit.suite.dist.yml rename to apps/basic/tests/unit.suite.yml diff --git a/apps/basic/tests/unit/_bootstrap.php b/apps/basic/tests/unit/_bootstrap.php index f37625b..8592f19 100644 --- a/apps/basic/tests/unit/_bootstrap.php +++ b/apps/basic/tests/unit/_bootstrap.php @@ -2,7 +2,4 @@ // add unit testing specific bootstrap code here -yii\codeception\TestCase::$appConfig = yii\helpers\ArrayHelper::merge( - require(__DIR__ . '/../../config/web.php'), - require(__DIR__ . '/../../config/codeception/unit.php') -); +yii\codeception\TestCase::$appConfig = require(__DIR__ . '/_config.php'); diff --git a/apps/basic/tests/unit/_config.php b/apps/basic/tests/unit/_config.php new file mode 100644 index 0000000..6eac4f9 --- /dev/null +++ b/apps/basic/tests/unit/_config.php @@ -0,0 +1,17 @@ + [ + 'fixture' => [ + 'class' => 'yii\test\DbFixtureManager', + 'basePath' => '@tests/unit/fixtures', + ], + 'db' => [ + 'dsn' => 'mysql:host=localhost;dbname=yii2_basic_unit', + ], + ], +]);