diff --git a/test/class/task.class.php b/test/class/task.class.php index 0199f8ea2d..31bbcc5090 100644 --- a/test/class/task.class.php +++ b/test/class/task.class.php @@ -1444,4 +1444,21 @@ class taskTest return $object ? 1 : 2; } } + + /** + * Get the users who finished the multiple task. + * + * @param int $taskID + * @param string|array $team + * @access public + * @return array + */ + public function getFinishedUsersTest($taskID = 0, $team = array()) + { + $object = $this->objectModel->getFinishedUsers($taskID, $team); + + if(dao::isError()) return dao::getError(); + + return $object; + } } diff --git a/test/model/task/getfinishedusers.php b/test/model/task/getfinishedusers.php new file mode 100755 index 0000000000..492618f9d5 --- /dev/null +++ b/test/model/task/getfinishedusers.php @@ -0,0 +1,23 @@ +#!/usr/bin/env php +getDataOfTasksPerEstimate(); +cid=1 +pid=1 + +获取空数据 >> 0 +获取完成多人任务ID为1的人员 >> 0 + +*/ + +$task = new taskTest(); + +$taskObject = $task->getByIDTest(1); + +r($task->getFinishedUsersTest()) && p() && e('0'); // 获取空数据 +r($task->getFinishedUsersTest($taskObject->id, $taskObject->team)) && p() && e('0'); // 获取完成多人任务ID为1的人员