* Fix unit test errors.

This commit is contained in:
tianshujie
2023-11-28 08:43:17 +08:00
parent 50c8a345e5
commit 7aa9814a4a
3 changed files with 22 additions and 18 deletions
@@ -1,5 +1,13 @@
#!/usr/bin/env php
<?php
/**
title=测试 programModel::getKanbanStatisticData();
timeout=0
cid=1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/program.class.php';
zdTable('user')->gen(5);
@@ -13,13 +21,8 @@ zdTable('productplan')->gen(0);
zdTable('release')->gen(0);
zdTable('team')->gen(0);
/**
title=测试 programModel::getKanbanStatisticData();
timeout=0
cid=1
*/
global $app;
$app->rawModule = 'program';
$programTester = new programTest();
$statistic = $programTester->getKanbanStatisticDataTest();
@@ -29,5 +32,3 @@ r(count($statistic[1])) && p() && e('0'); // 获取项目集的计划数量
r(count($statistic[2])) && p() && e('0'); // 获取项目集的发布数量
r(count($statistic[3])) && p() && e('0'); // 获取项目集的项目数量
r(count($statistic[4])) && p() && e('2'); // 获取项目集的进行中的执行数量
r(count($statistic[5])) && p() && e('0'); // 获取项目集的工时的数量
r(count($statistic[6])) && p() && e('14'); // 获取项目集的项目进度的数量