|
@@ -0,0 +1,17 @@
|
|
|
|
|
+<?php
|
|
|
|
|
+
|
|
|
|
|
+use yii\helpers\ArrayHelper;
|
|
|
|
|
+
|
|
|
|
|
+$config = require(__DIR__ . '/../../config/web.php');
|
|
|
|
|
+
|
|
|
|
|
+return ArrayHelper::merge($config, [
|
|
|
|
|
+ 'components' => [
|
|
|
|
|
+ 'fixture' => [
|
|
|
|
|
+ 'class' => 'yii\test\DbFixtureManager',
|
|
|
|
|
+ 'basePath' => '@tests/unit/fixtures',
|
|
|
|
|
+ ],
|
|
|
|
|
+ 'db' => [
|
|
|
|
|
+ 'dsn' => 'mysql:host=localhost;dbname=yii2_basic_unit',
|
|
|
|
|
+ ],
|
|
|
|
|
+ ],
|
|
|
|
|
+]);
|