+ [task#130253,doing,0.2h] add unit test of taskModel::getUnclosedTasksByExecution.

This commit is contained in:
liumengyi
2024-10-23 09:18:10 +08:00
committed by 刘刚
parent f8b3b0264f
commit fcfb4e93c7
2 changed files with 20 additions and 0 deletions
@@ -2215,8 +2215,20 @@ class taskTest
$tasks = $this->objectModel->getUnclosedTasksByExecution($executionID);
if(!$tasks) return false;
$return = '';
if(is_array($tasks))
{
foreach($tasks as $task)
{
if(is_array($task))
{
foreach($task as $key => $value) $return .= $value->id . ',' . $value->execution . ';';
}
else
{
$return .= $task . ';';
}
}
}
$return = rtrim($return, ';');
return $return;
@@ -0,0 +1,8 @@
#!/usr/bin/env php
<?php
/**
title=taskModel->getUnclosedTasksByExecution();
cid=0
*/