Files
EasySoft-ZenTaoPMS/module/program/test/model/getkanbanstatisticdata.php
T
2023-11-28 08:43:17 +08:00

35 lines
1.0 KiB
PHP

#!/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);
su('admin');
zdTable('project')->config('program')->gen(30);
zdTable('product')->config('product')->gen(30);
zdTable('task')->gen(0);
zdTable('projectproduct')->gen(0);
zdTable('productplan')->gen(0);
zdTable('release')->gen(0);
zdTable('team')->gen(0);
global $app;
$app->rawModule = 'program';
$programTester = new programTest();
$statistic = $programTester->getKanbanStatisticDataTest();
r(count($statistic[0])) && p() && e('9'); // 获取项目集的产品数量
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'); // 获取项目集的进行中的执行数量