* [unittest] add dm unittest sql.

This commit is contained in:
qixinzhi
2025-08-06 15:22:14 +08:00
committed by tianshujie
parent dc091769bc
commit 39d338533a
2 changed files with 49 additions and 2 deletions
@@ -18,9 +18,10 @@ class metricTest
*/
public function initMetric()
{
global $tester,$app;
global $tester,$app,$config;
$appPath = $app->getAppRoot();
$sqlFile = $appPath . 'test/data/metric.sql';
$sqlName = $config->db->driver == 'dm' ? 'metric_dm.sql' : 'metric.sql';
$sqlFile = $appPath . "test/data/$sqlName";
$tester->dbh->exec(file_get_contents($sqlFile));
}
File diff suppressed because one or more lines are too long