summaryrefslogtreecommitdiff
path: root/tests/simple_unit/SqlMap/BaseCase.php
diff options
context:
space:
mode:
authorwei <>2006-12-17 22:20:50 +0000
committerwei <>2006-12-17 22:20:50 +0000
commit2570226fbac3e26b1e94896b50d1db4bc1aa3308 (patch)
tree421108ccbdc0ef021e6af4fa35b1d6bcbc352b37 /tests/simple_unit/SqlMap/BaseCase.php
parentddc0de38f64e5834ce04f0407a8416172b596655 (diff)
Add TDataSourceConfig, TSqlMapConfig, TActiveRecordConfig
Diffstat (limited to 'tests/simple_unit/SqlMap/BaseCase.php')
-rw-r--r--tests/simple_unit/SqlMap/BaseCase.php5
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);
}