Files
EasySoft-ZenTaoPMS/module/metric/test/model/getmetricbycode.php
T
2023-07-14 13:15:12 +08:00

23 lines
647 B
PHP

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/calc.class.php';
// zdTable('feedback')->config('feedback_create')->gen(5000);
$metric = new metricTest();
/**
title=getMetricByCode
cid=1
pid=1
*/
$options = array('product' => '50');
r($metric->getMetricByCode('count_of_plan_in_product', $options)) && p('0:value') && e('2'); // 测试按产品统计的计划数
$options = array('product' => '50', 'year' => '2020');
r($metric->getMetricByCode('count_of_annual_closed_feedback_in_product', $options)) && p('0:value') && e('0'); // 测试按产品统计年度关闭反馈数