refactored fixture feature.
This commit is contained in:
parent
b40b962628
commit
19b2defb1a
@ -25,10 +25,6 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'db' => $db,
|
'db' => $db,
|
||||||
'fixture' => [
|
|
||||||
'class' => 'yii\test\DbFixtureManager',
|
|
||||||
'basePath' => '@tests/unit/fixtures',
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
'params' => $params,
|
'params' => $params,
|
||||||
];
|
];
|
||||||
|
@ -5,10 +5,6 @@ return yii\helpers\ArrayHelper::merge(
|
|||||||
require(__DIR__ . '/../_config.php'),
|
require(__DIR__ . '/../_config.php'),
|
||||||
[
|
[
|
||||||
'components' => [
|
'components' => [
|
||||||
'fixture' => [
|
|
||||||
'class' => 'yii\test\DbFixtureManager',
|
|
||||||
'basePath' => '@tests/unit/fixtures',
|
|
||||||
],
|
|
||||||
'db' => [
|
'db' => [
|
||||||
'dsn' => 'mysql:host=localhost;dbname=yii2_basic_unit',
|
'dsn' => 'mysql:host=localhost;dbname=yii2_basic_unit',
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user