* Add unit test for getToAndCcList method.
This commit is contained in:
@@ -1275,6 +1275,21 @@ class taskTest
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test get toList and ccList.
|
||||
*
|
||||
* @param int $taskID
|
||||
* @access public
|
||||
* @return array|false
|
||||
*/
|
||||
public function getToAndCcListTest(int $taskID): array|false
|
||||
{
|
||||
$task = $this->objectModel->getByID($taskID);
|
||||
if(empty($task)) return false;
|
||||
|
||||
return $this->objectModel->getToAndCcList($task);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for get team by account.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user