* [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
@@ -24,7 +24,7 @@ cid=17754
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/programplan.unittest.class.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
su('admin');
zenData('project')->loadYaml('project')->gen(5);
@@ -32,7 +32,7 @@ zenData('projectproduct')->loadYaml('projectproduct')->gen(5);
zenData('product')->loadYaml('product')->gen(2);
$planIDList = array(1, 2, 3);
$programplan = new programplanTest();
$programplan = new programplanModelTest();
r($programplan->processPlanTest($planIDList[0])) && p('id,name,productName') && e('1,瀑布项目1,瀑布产品1'); // 测试id为1的瀑布项目
r($programplan->processPlanTest($planIDList[1])) && p('id,name,productName,attribute') && e('2,阶段a,瀑布产品2,review'); // 测试id为2的瀑布项目阶段