fixing some tests
This commit is contained in:
15
tests/_app/config/db.php
Normal file
15
tests/_app/config/db.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
$db = [
|
||||
'class' => 'yii\db\Connection',
|
||||
'dsn' => 'mysql:host=localhost;dbname=test',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'charset' => 'utf8',
|
||||
];
|
||||
|
||||
if (file_exists(__DIR__ . '/db.local.php')) {
|
||||
$db = array_merge($db, require(__DIR__ . '/db.local.php'));
|
||||
}
|
||||
|
||||
return $db;
|
||||
Reference in New Issue
Block a user