* Refactor reportModel::getStatusOverview, and modify its unit test.

This commit is contained in:
liumengyi
2023-12-01 14:21:57 +08:00
parent abbfa6dea8
commit ab17fba4bd
3 changed files with 17 additions and 11 deletions
@@ -1,7 +1,11 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/report.class.php';
zdTable('user')->gen(1);
su('admin');
/**
@@ -22,4 +26,4 @@ $report = new reportTest();
r($report->getStatusOverviewTest($objectType[0], $statusStat)) && p() && e('总需求 &nbsp; 21<br />未完成 &nbsp; 16'); // 测试获取 story 状态数量
r($report->getStatusOverviewTest($objectType[1], $statusStat)) && p() && e('总任务 &nbsp; 21<br />未完成 &nbsp; 6'); // 测试获取 task 状态数量
r($report->getStatusOverviewTest($objectType[2], $statusStat)) && p() && e('总Bug &nbsp; 21<br />未解决 &nbsp; 1'); // 测试获取 bug 状态数量
r($report->getStatusOverviewTest($objectType[2], $statusStat)) && p() && e('总Bug &nbsp; 21<br />未解决 &nbsp; 1'); // 测试获取 bug 状态数量