diff --git a/tests/thinkphp/library/think/modelTest.php b/tests/thinkphp/library/think/modelTest.php index 1f36d1ad..10374b11 100644 --- a/tests/thinkphp/library/think/modelTest.php +++ b/tests/thinkphp/library/think/modelTest.php @@ -22,10 +22,12 @@ class modelTest extends \PHPUnit_Framework_TestCase public function getConfig() { $config = [ - 'type' => 'mysql', - 'database' => 'test', - 'username' => 'root', - 'password' => '', + 'connection' => [ + 'type' => 'mysql', + 'database' => 'test', + 'username' => 'root', + 'password' => '', + ], ]; return $config; }