* [ci,done,0.1h] fix unlinkcases unit test error.

This commit is contained in:
tianshujie
2025-06-04 17:02:51 +08:00
parent 3dd0d5737d
commit b9b61eb764
+15 -8
View File
@@ -2,6 +2,19 @@
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/execution.unittest.class.php';
/**
title=测试executionModel->unlinkCasesTest();
timeout=0
cid=1
- 敏捷执行解除关联用例 @0
- 瀑布执行解除关联用例 @0
- 看板执行解除关联用例 @0
- 敏捷执行解除关联用例 @0
- 敏捷执行解除关联用例 @0
*/
$execution = zenData('project');
$execution->id->range('1-5');
@@ -38,14 +51,6 @@ $stroy->gen(3);
su('admin');
/**
title=测试executionModel->unlinkCasesTest();
timeout=0
cid=1
*/
$executionIDList = array('3', '4', '5');
$products = array('1', '43', '68');
$stories = array('2', '170', '270');
@@ -55,3 +60,5 @@ $execution = new executionTest();
r($execution->unlinkCasesTest($executionIDList[0], $products[0], $stories[0])) && p() && e('0'); // 敏捷执行解除关联用例
r($execution->unlinkCasesTest($executionIDList[1], $products[1], $stories[1])) && p() && e('0'); // 瀑布执行解除关联用例
r($execution->unlinkCasesTest($executionIDList[2], $products[2], $stories[2])) && p() && e('0'); // 看板执行解除关联用例
r($execution->unlinkCasesTest($executionIDList[0], $products[0], $stories[1])) && p() && e('0'); // 敏捷执行解除关联用例
r($execution->unlinkCasesTest($executionIDList[0], $products[1], $stories[0])) && p() && e('0'); // 敏捷执行解除关联用例