* testtask: rename the method to init a record for filling back the test result after the automated test is completed.

This commit is contained in:
liugang
2023-09-28 10:05:51 +08:00
parent b9db661214
commit 2c2eb1be5a
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1165,7 +1165,8 @@ class testtaskModel extends model
}
/**
* Init testtask result.
* 初始化一条记录便于自动化测试完成后回填测试结果。
* Init a record for filling back the test result after the automated test is completed.
*
* @param int $runID
* @param int $caseID
@@ -1174,7 +1175,7 @@ class testtaskModel extends model
* @access public
* @return int|false
*/
public function createResultForAutomatedTest(int $runID = 0, int $caseID = 0, int $version = 0, int $nodeID = 0): int|false
public function initResultForAutomatedTest(int $runID = 0, int $caseID = 0, int $version = 0, int $nodeID = 0): int|false
{
$result = new stdClass();
$result->run = $runID;