* [unittest] fix getdataoftasksperleft error.
This commit is contained in:
@@ -12,10 +12,27 @@ title=taskModel->getDataOfTasksPerLeft();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 按照剩余时间统计的数量 @11
|
||||
- 统计剩余工时为1的任务数量
|
||||
- 第1条的name属性 @1
|
||||
- 第1条的value属性 @3
|
||||
- 统计剩余工时为2的任务数量
|
||||
- 第2条的name属性 @2
|
||||
- 第2条的value属性 @3
|
||||
- 统计剩余工时为3的任务数量
|
||||
- 第3条的name属性 @3
|
||||
- 第3条的value属性 @3
|
||||
- 统计剩余工时为4的任务数量
|
||||
- 第4条的name属性 @4
|
||||
- 第4条的value属性 @3
|
||||
|
||||
*/
|
||||
|
||||
global $tester;
|
||||
$taskModule = $tester->loadModel('task');
|
||||
|
||||
r(count($taskModule->getDataOfTasksPerLeft())) && p() && e('11'); // 按照剩余时间统计的数量
|
||||
r($taskModule->getDataOfTasksPerLeft()) && p('1:name,value') && e('1,3'); // 统计剩余工时为1的任务数量
|
||||
$result = $taskModule->getDataOfTasksPerLeft();
|
||||
r(count($result)) && p() && e('11'); // 按照剩余时间统计的数量
|
||||
r($result) && p('1:name,value') && e('1,3'); // 统计剩余工时为1的任务数量
|
||||
r($result) && p('2:name,value') && e('2,3'); // 统计剩余工时为2的任务数量
|
||||
r($result) && p('3:name,value') && e('3,3'); // 统计剩余工时为3的任务数量
|
||||
r($result) && p('4:name,value') && e('4,3'); // 统计剩余工时为4的任务数量
|
||||
Reference in New Issue
Block a user