* Optimize checkunlinkobjects unit test script.

This commit is contained in:
wangyuting
2025-08-22 09:52:00 +08:00
parent 8ec77ba7e1
commit fec4f5388c
@@ -6,6 +6,12 @@ title=productpanModel->checkUnlinkObjects();
timeout=0
cid=1
- 查询不到的数据 @0
- 可以查询到的需求 @2
- 可以查询到的需求 @2
- 可以查询到的需求 @3
- 可以查询到的bug @8
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/productplan.unittest.class.php';
@@ -28,5 +34,7 @@ $tester = $tester->loadModel('productplan');
$branchIdList = array(1, 2, 3);
r($tester->checkUnlinkObjects($branchIdList, 1, 'story')) && p() && e('0'); // 查询不到的数据
r($tester->checkUnlinkObjects($branchIdList, 4, 'story')) && p() && e('3'); // 查询不到的数据可以查询到的需求
r($tester->checkUnlinkObjects($branchIdList, 7, 'bug')) && p() && e('8'); // 查询不到的数据可以查询到的bug
r($tester->checkUnlinkObjects($branchIdList, 2, 'story')) && p() && e('2'); // 可以查询到的需求
r($tester->checkUnlinkObjects($branchIdList, 3, 'story')) && p() && e('2'); // 可以查询到的需求
r($tester->checkUnlinkObjects($branchIdList, 4, 'story')) && p() && e('3'); // 可以查询到的需求
r($tester->checkUnlinkObjects($branchIdList, 7, 'bug')) && p() && e('8'); // 可以查询到的bug