From 91f1137dac746af0a9353f9aff73e2079390b14e Mon Sep 17 00:00:00 2001 From: oldrind <1401019000@qq.com> Date: Wed, 2 Mar 2016 15:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0modelTest=E7=B1=BB=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/modelTest.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; }