znt/module/product/test/model/getstats4kanban.php

42 lines
1.5 KiB
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/**
title=productModel->getStats4Kanban();
timeout=0
cid=17515
- 执行product模块的getStats4KanbanTest方法 @0
- 执行product模块的getStats4KanbanTest方法参数是2
- 第13条的name属性 @项目13
- 第14条的name属性 @项目14
- 执行product模块的getStats4KanbanTest方法参数是5 @0
- 执行product模块的getStats4KanbanTest方法参数是1, true @0
- 执行product模块的getStats4KanbanTest方法参数是3, true @0
- 执行product模块的getStats4KanbanTest方法参数是4, true @0
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
$project = zenData('project');
$project->type->range('program{10},project{10},sprint{10}');
$project->project->range('0{10},1-10,11-20');
$project->gen(30);
zenData('product')->gen(30);
zenData('projectproduct')->gen(30);
zenData('productplan')->gen(30);
zenData('team')->gen(30);
zenData('release')->gen(30);
$product = new productTest('admin');
r($product->getStats4KanbanTest(0)) && p('') && e('0');
r($product->getStats4KanbanTest(2)) && p('13:name;14:name') && e('项目13;项目14');
r($product->getStats4KanbanTest(5)) && p('') && e('0');
r($product->getStats4KanbanTest(1, true)) && p() && e('0');
r($product->getStats4KanbanTest(3, true)) && p() && e('0');
r($product->getStats4KanbanTest(4, true)) && p() && e('0');