mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修改medelTest类数据库连接配置
This commit is contained in:
@@ -21,13 +21,12 @@ class modelTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function getConfig()
|
||||
{
|
||||
static $config;
|
||||
if (!isset($config)) {
|
||||
$config = \think\Input::get('database');
|
||||
$config['database'] = 'test';
|
||||
$config['username'] = 'root';
|
||||
$config['password'] = '';
|
||||
}
|
||||
$config = [
|
||||
'type' => 'mysql',
|
||||
'database' => 'test',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
];
|
||||
return $config;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user