Browse Source

codeception configs, web config modifed for db-settings

tags/2.0.0-beta
Mark 11 years ago
parent
commit
3cc55c2cfa
  1. 3
      apps/basic/config/codeception/acceptance.php
  2. 3
      apps/basic/config/codeception/functional.php
  3. 13
      apps/basic/config/codeception/unit.php
  4. 11
      apps/basic/config/web.php

3
apps/basic/config/codeception/acceptance.php

@ -0,0 +1,3 @@
<?php
return [];

3
apps/basic/config/codeception/functional.php

@ -0,0 +1,3 @@
<?php
return [];

13
apps/basic/config/codeception/unit.php

@ -0,0 +1,13 @@
<?php
return [
'components' => [
'fixture' => [
'class' => 'yii\test\DbFixtureManager',
'basePath' => '@app/tests/unit/fixtures',
],
'db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2basic_unit',
],
],
];

11
apps/basic/config/web.php

@ -1,5 +1,9 @@
<?php
Yii::setAlias('tests', realpath(__DIR__ . '/../tests'));
$params = require(__DIR__ . '/params.php');
$config = [
'id' => '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,
];

Loading…
Cancel
Save