* [unittest] add comment for getstoriesbyproject.

This commit is contained in:
tianshujie
2025-06-06 09:31:03 +08:00
parent d0dec95a26
commit 6b3425f3c7
@@ -13,6 +13,12 @@ title=测试 projectModel->getStoriesByProject();
timeout=0
cid=1
- 获取项目1关联的所有产品数量 @1
- 获取项目1关联的产品ID为1的详情第0条的product属性 @1
- 获取项目1关联的产品ID为1的需求ID第0条的storyIDList属性 @2,4
- 获取项目0关联的所有产品数量 @6
- 获取项目100关联的所有产品数量 @0
*/
global $tester;
@@ -27,4 +33,4 @@ $result = $tester->project->getStoriesByProject(0);
r(count($result)) && p() && e('6'); // 获取项目0关联的所有产品数量
$result = $tester->project->getStoriesByProject(100);
r(count($result)) && p() && e('0'); // 获取项目100关联的所有产品数量
r(count($result)) && p() && e('0'); // 获取项目100关联的所有产品数量