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