diff --git a/tests/thinkphp/library/think/dbTest.php b/tests/thinkphp/library/think/dbTest.php index 515f9424..5724ee21 100644 --- a/tests/thinkphp/library/think/dbTest.php +++ b/tests/thinkphp/library/think/dbTest.php @@ -185,7 +185,7 @@ EOF; $config = $this->getConfig(); $tableName = 'user'; $result = Db::connect($config)->name($tableName); - $this->assertEquals($config['prefix'] . $tableName, $result->getOptions()['table']); + $this->assertEquals($config['prefix'] . $tableName, $result->getTable()); } public function testInsert()