* [unittest] modify unittest of programModel::refreshProjectStats.
This commit is contained in:
@@ -7,17 +7,17 @@ timeout=0
|
||||
cid=1
|
||||
|
||||
- 更新项目 11 的统计信息,获取项目 11 的统计信息
|
||||
- 属性progress @25.00
|
||||
- 属性progress @22.80
|
||||
- 属性teamCount @4
|
||||
- 属性estimate @46
|
||||
- 属性estimate @51
|
||||
- 属性consumed @13
|
||||
- 属性left @39
|
||||
- 属性left @44
|
||||
- 更新项目 60 的统计信息,获取项目 60 的统计信息
|
||||
- 属性progress @31.80
|
||||
- 属性progress @28.00
|
||||
- 属性teamCount @0
|
||||
- 属性estimate @18
|
||||
- 属性estimate @21
|
||||
- 属性consumed @7
|
||||
- 属性left @15
|
||||
- 属性left @18
|
||||
- 更新项目 61 的统计信息,获取项目 61 的统计信息
|
||||
- 属性progress @0.00
|
||||
- 属性teamCount @0
|
||||
@@ -52,8 +52,8 @@ su('admin');
|
||||
$projectIdList = array(11, 60, 61, 100, 1111);
|
||||
$programTester = new programTest();
|
||||
|
||||
r($programTester->refreshProjectStatsTest($projectIdList[0])) && p('progress,teamCount,estimate,consumed,left') && e('25.00,4,46,13,39'); // 更新项目 11 的统计信息,获取项目 11 的统计信息
|
||||
r($programTester->refreshProjectStatsTest($projectIdList[1])) && p('progress,teamCount,estimate,consumed,left') && e('31.80,0,18,7,15'); // 更新项目 60 的统计信息,获取项目 60 的统计信息
|
||||
r($programTester->refreshProjectStatsTest($projectIdList[0])) && p('progress,teamCount,estimate,consumed,left') && e('22.80,4,51,13,44'); // 更新项目 11 的统计信息,获取项目 11 的统计信息
|
||||
r($programTester->refreshProjectStatsTest($projectIdList[1])) && p('progress,teamCount,estimate,consumed,left') && e('28.00,0,21,7,18'); // 更新项目 60 的统计信息,获取项目 60 的统计信息
|
||||
r($programTester->refreshProjectStatsTest($projectIdList[2])) && p('progress,teamCount,estimate,consumed,left') && e('0.00,0,0,0,0'); // 更新项目 61 的统计信息,获取项目 61 的统计信息
|
||||
r($programTester->refreshProjectStatsTest($projectIdList[3])) && p('progress,teamCount,estimate,consumed,left') && e('0.00,0,0,0,0'); // 更新项目 100 的统计信息,获取项目 100 的统计信息
|
||||
r($programTester->refreshProjectStatsTest($projectIdList[4])) && p('progress,teamCount,estimate,consumed,left') && e('0,0,0,0,0'); // 更新不存在的项目 1111 的统计信息,获取不存在的项目 1111 的统计信息
|
||||
|
||||
Reference in New Issue
Block a user