From 86d0e987a5b98ead988980946f542a800aea6bbc Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 4 Jan 2014 01:16:05 +0400 Subject: [PATCH] Added to the basic app, fixed config, added to core commands. --- config/console.php | 14 ++++++++++++++ tests/unit/fixtures/.gitkeep | 0 tests/unit/templates/fixtures/.gitkeep | 0 3 files changed, 14 insertions(+) create mode 100644 tests/unit/fixtures/.gitkeep create mode 100644 tests/unit/templates/fixtures/.gitkeep 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