* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.

This commit is contained in:
liugang
2026-01-14 15:32:47 +08:00
parent 1940c61846
commit 1503f91b2b
3522 changed files with 66017 additions and 28160 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ cid=16549
// 1. 导入依赖(路径固定,不可修改)
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/git.unittest.class.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
// 2. zendata数据准备(根据需要配置)
$relationTable = zenData('relation');
@@ -33,7 +33,7 @@ $repohistoryTable->loadYaml('repohistory_linkcommit', false, 2)->gen(10);
su('admin');
// 4. 创建测试实例(变量名与模块名一致)
$gitTest = new gitTest();
$gitTest = new gitModelTest();
// 5. 强制要求:必须包含至少5个测试步骤
r($gitTest->linkCommitTest(array(1), 1, 'abc123')) && p() && e('has_error'); // 步骤1:正常关联单个设计和提交(因linkCommit方法存在bug)