codeception configs, web config modifed for db-settings
This commit is contained in:
parent
baf7dca6d0
commit
fc4c2d5479
3
config/codeception/acceptance.php
Normal file
3
config/codeception/acceptance.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
return [];
|
3
config/codeception/functional.php
Normal file
3
config/codeception/functional.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
return [];
|
13
config/codeception/unit.php
Normal file
13
config/codeception/unit.php
Normal file
@ -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',
|
||||
],
|
||||
],
|
||||
];
|
@ -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…
Reference in New Issue
Block a user