* Adjust unit test of getParentChildrenTypesTest().

This commit is contained in:
xushenjie
2023-05-11 08:50:51 +00:00
parent b57f08d169
commit 732ba2bdbd
2 changed files with 5 additions and 16 deletions
@@ -342,17 +342,18 @@ class programplanTest
}
/**
* 测试获取父阶段的子类型。
* Test get parent stage's children types.
*
* @param int $parentID
* @access public
* @return string
* @return array|bool
*/
public function getParentChildrenTypesTest($parentID)
public function getParentChildrenTypesTest(int $parentID): array|bool
{
$objects = $this->objectModel->getParentChildrenTypes($parentID);
if(dao::isError()) return dao::getError();
if(dao::isError()) return false;
return $objects;
}