* [unittest] fix case data.

This commit is contained in:
tianshujie
2025-11-13 13:54:00 +08:00
parent 4bc508fc75
commit 40b0d1ded1
+4 -2
View File
@@ -4,7 +4,9 @@ include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/testcase.unittest.class.php';
su('admin');
zenData('case')->gen(10);
$caseTable = zenData('case');
$caseTable->story->range(0);
$caseTable->gen(10);
/**
@@ -36,4 +38,4 @@ $pri = array('pri' => '1');
$testcase = new testCaseTest();
r($testcase->doUpdateTest($testcaseIdList[0], $title)) && p('title,type,pri') && e('修改后的用例,feature,1'); // 测试更新用例名称
r($testcase->doUpdateTest($testcaseIdList[1], $type)) && p('title,type,pri') && e('这个是测试用例2,install,2'); // 测试更新用例类型
r($testcase->doUpdateTest($testcaseIdList[2], $pri)) && p('title,type,pri') && e('这个是测试用例3,config,1'); // 测试更新用例优先级
r($testcase->doUpdateTest($testcaseIdList[2], $pri)) && p('title,type,pri') && e('这个是测试用例3,config,1'); // 测试更新用例优先级