+ Add doc::getLinkedObjectData unit test.

This commit is contained in:
tianshujie
2023-12-05 14:07:11 +08:00
parent 2af2e52781
commit 44a6cd3253
2 changed files with 116 additions and 0 deletions
+19
View File
@@ -1258,4 +1258,23 @@ class docTest
if(dao::isError()) return dao::getError();
return $data;
}
/**
* 获取关联产品/项目/执行的数据。
* Get linked product/project/execution data.
*
* @param string $type product|project|execution
* @param int $objectID
* @param string $edition
* @access public
* @return array
*/
public function getLinkedObjectDataTest(string $type, int $objectID, string $edition = ''): array
{
$this->objectModel->config->edition = $edition;
$data = $this->objectModel->getLinkedObjectData($type, $objectID);
if(dao::isError()) return dao::getError();
return $data;
}
}