43 lines
2.2 KiB
PHP
43 lines
2.2 KiB
PHP
|
|
#!/usr/bin/env php
|
||
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
|
||
|
|
title=测试productModel->getGroupRoadmapData();
|
||
|
|
cid=17490
|
||
|
|
|
||
|
|
- 获取产品ID为1的产品路线图数据 @2
|
||
|
|
- 获取产品ID为1下主干的产品路线图数据 @2
|
||
|
|
- 获取产品ID为1下分支1的产品路线图数据 @2
|
||
|
|
- 获取产品ID为1的产品路线图数据 @2
|
||
|
|
- 获取产品ID为6的产品路线图数据 @2
|
||
|
|
- 获取产品ID为6下主干的产品路线图数据 @2
|
||
|
|
- 获取产品ID为6下分支1的产品路线图数据 @2
|
||
|
|
- 获取产品ID为6的产品路线图数据 @2
|
||
|
|
|
||
|
|
*/
|
||
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||
|
|
|
||
|
|
zenData('user')->gen(5);
|
||
|
|
zenData('productplan')->loadYaml('productplan')->gen(30);
|
||
|
|
zenData('release')->loadYaml('release')->gen(30);
|
||
|
|
su('admin');
|
||
|
|
|
||
|
|
$productIdList = array(1, 6);
|
||
|
|
$branchList = array('all', '0', '1');
|
||
|
|
$countList = array(0, 1);
|
||
|
|
|
||
|
|
global $tester, $app;
|
||
|
|
$tester->loadModel('product');
|
||
|
|
$app->rawModule = 'product';
|
||
|
|
$app->moduleName = 'product';
|
||
|
|
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[0], $branchList[0], $countList[0]))) && p() && e('2'); // 获取产品ID为1的产品路线图数据
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[0], $branchList[1], $countList[0]))) && p() && e('2'); // 获取产品ID为1下主干的产品路线图数据
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[0], $branchList[2], $countList[0]))) && p() && e('2'); // 获取产品ID为1下分支1的产品路线图数据
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[0], $branchList[0], $countList[1]))) && p() && e('2'); // 获取产品ID为1的产品路线图数据
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[1], $branchList[0], $countList[0]))) && p() && e('2'); // 获取产品ID为6的产品路线图数据
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[1], $branchList[1], $countList[0]))) && p() && e('2'); // 获取产品ID为6下主干的产品路线图数据
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[1], $branchList[2], $countList[0]))) && p() && e('2'); // 获取产品ID为6下分支1的产品路线图数据
|
||
|
|
r(count($tester->product->getGroupRoadmapData($productIdList[1], $branchList[0], $countList[1]))) && p() && e('2'); // 获取产品ID为6的产品路线图数据
|