+ Add custom::hasScrumProcessData unit test.

This commit is contained in:
tianshujie
2023-11-23 11:14:43 +08:00
parent e8d56603c3
commit cdf0bed67d
3 changed files with 52 additions and 1 deletions
+20
View File
@@ -533,4 +533,24 @@ class customTest
if(dao::isError()) return dao::getError();
return $count;
}
/**
* 检查系统中是否有项目活动数据。
* Check if there is project activity data in the system.
*
* @param string $edition
* @access public
* @return int|array
*/
public function hasScrumProcessDataTest(string $edition): int|array
{
$oldEdition = $this->objectModel->config->edition;
$this->objectModel->config->edition = $edition;
$count = $this->objectModel->hasScrumProcessData();
$this->objectModel->config->edition = $oldEdition;
if(dao::isError()) return dao::getError();
return $count;
}
}