42 lines
1.5 KiB
PHP
Executable file
42 lines
1.5 KiB
PHP
Executable file
#!/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'); |