* Add unit test for getToAndCcList method.

This commit is contained in:
caoyanyi
2023-06-01 15:56:41 +08:00
parent 923bb2bcf3
commit e0562976e6
4 changed files with 80 additions and 39 deletions
+15
View File
@@ -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.
*