* [unittest] modify unittest.

This commit is contained in:
sunguangming
2025-08-22 06:00:23 +00:00
parent d5b63ef5b6
commit 55a321ca2f
+4
View File
@@ -4,12 +4,14 @@
/**
title=测试 storyModel->linkStory();
timeout=0
cid=0
- 获取关联需求后的执行下的需求数量 @1
- 获取关联需求后的执行下的需求数量 @2
- 获取关联需求后的执行下的需求数量 @1
- 获取关联需求后的执行下的需求数量 @1
- 获取关联需求后的执行下的需求数量 @2
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
@@ -23,8 +25,10 @@ $stories1 = $storyTest->linkStoryTest(11, 1, 300);
$stories2 = $storyTest->linkStoryTest(11, 1, 301);
$stories3 = $storyTest->linkStoryTest(12, 1, 302);
$stories4 = $storyTest->linkStoryTest(13, 1, 304);
$stories5 = $storyTest->linkStoryTest(13, 1, 305);
r(count($stories1)) && p() && e('1'); // 获取关联需求后的执行下的需求数量
r(count($stories2)) && p() && e('2'); // 获取关联需求后的执行下的需求数量
r(count($stories3)) && p() && e('1'); // 获取关联需求后的执行下的需求数量
r(count($stories4)) && p() && e('1'); // 获取关联需求后的执行下的需求数量
r(count($stories5)) && p() && e('2'); // 获取关联需求后的执行下的需求数量