diff --git a/config/console.php b/config/console.php index 6f3f9a8..55630fc 100644 --- a/config/console.php +++ b/config/console.php @@ -1,4 +1,7 @@ 'basic-console', @@ -19,6 +22,17 @@ return [ ], ], ], + 'db' => [ + 'class' => 'yii\db\Connection', + 'dsn' => 'mysql:host=localhost;dbname=yii2basic', + 'username' => 'root', + 'password' => '', + 'charset' => 'utf8', + ], + 'fixture' => [ + 'class' => 'yii\test\DbFixtureManager', + 'basePath' => '@tests/unit/fixtures', + ], ], 'params' => $params, ]; diff --git a/tests/unit/fixtures/.gitkeep b/tests/unit/fixtures/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/unit/templates/fixtures/.gitkeep b/tests/unit/templates/fixtures/.gitkeep new file mode 100644 index 0000000..e69de29