diff --git a/apps/basic/config/codeception/acceptance.php b/apps/basic/config/codeception/acceptance.php new file mode 100644 index 0000000..0b67a5f --- /dev/null +++ b/apps/basic/config/codeception/acceptance.php @@ -0,0 +1,3 @@ + [ + 'fixture' => [ + 'class' => 'yii\test\DbFixtureManager', + 'basePath' => '@app/tests/unit/fixtures', + ], + 'db' => [ + 'dsn' => 'mysql:host=localhost;dbname=yii2basic_unit', + ], + ], +]; diff --git a/apps/basic/config/web.php b/apps/basic/config/web.php index 6124c4f..a5f7b75 100644 --- a/apps/basic/config/web.php +++ b/apps/basic/config/web.php @@ -1,5 +1,9 @@ 'basic', 'basePath' => dirname(__DIR__), @@ -26,6 +30,13 @@ $config = [ ], ], ], + 'db' => [ + 'class' => 'yii\db\Connection', + 'dsn' => 'mysql:host=localhost;dbname=yii2basic', + 'username' => 'root', + 'password' => '', + 'charset' => 'utf8', + ], ], 'params' => $params, ];