* Fix unittest of task.

This commit is contained in:
liyang
2022-10-08 11:28:02 +08:00
parent d38d83d667
commit 20dc2d58a7
2 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ class taskTest
* @access public
* @return object
*/
public function createObject($param = array(), $executionID = '')
public function createObject($param = array(), $executionID = '', $bugID = '')
{
$assignedTo = array('');
$createFields = array('module' => '', 'story' => '', 'name' => '', 'type' => '', 'assignedTo' => $assignedTo,
@@ -26,7 +26,7 @@ class taskTest
foreach($param as $key => $value) $_POST[$key] = $value;
$object = $this->objectModel->create($executionID);
$object = $this->objectModel->create($executionID, $bugID);
if (in_array('user92', $_POST['assignedTo'], true))
{
$objectID = $object['user92']['id'];