diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple_unit/SqlMap/BaseCase.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/simple_unit/SqlMap/BaseCase.php b/tests/simple_unit/SqlMap/BaseCase.php index c4d84698..e311302d 100644 --- a/tests/simple_unit/SqlMap/BaseCase.php +++ b/tests/simple_unit/SqlMap/BaseCase.php @@ -55,9 +55,8 @@ class BaseCase extends UnitTestCase */
protected function initSqlMap()
{
- $filename = $this->config->getSqlMapConfigFile();
- $conn = $this->config->getConnection();
- $manager = new TSqlMapManager($conn,$filename);
+ $manager = new TSqlMapManager($this->config->getConnection());
+ $manager->configureXml($this->config->getSqlMapConfigFile());
$this->sqlmap = $manager->getSqlMapGateway();
$manager->TypeHandlers->registerTypeHandler(new TDateTimeHandler);
}
|