* Refactor getKanbanGroup method and releate case.
This commit is contained in:
@@ -311,20 +311,6 @@ class programTest
|
||||
return $this->program->getTreeMenu($programID);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get top pairs.
|
||||
*
|
||||
* @param string $model
|
||||
* @param string $mode
|
||||
* @param bool $isQueryAll
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getTopPairsTest($model = '', $mode = '', $isQueryAll = false)
|
||||
{
|
||||
return $this->program->getTopPairs($model, $mode, $isQueryAll);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get kanban group.
|
||||
*
|
||||
@@ -429,4 +415,17 @@ class programTest
|
||||
|
||||
return array('old' => empty($oldChildGrade) ? 0 : $oldChildGrade, 'new' => empty($newChildGrade) ? 0 : $newChildGrade);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取看板统计的相关数据。
|
||||
* Get Kanban statistics data.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getKanbanStatisticDataTest(): array
|
||||
{
|
||||
$programs = $this->program->getTopPairs('noclosed');
|
||||
return $this->program->getKanbanStatisticData($programs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user