fixing some tests

This commit is contained in:
Antonio Ramirez
2016-12-11 04:17:55 +01:00
parent d8e517a9d1
commit 0834ad6ca0
40 changed files with 1153 additions and 23 deletions

15
tests/_app/config/db.php Normal file
View 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;