+ Add custom::hasScrumAuditplanData unit test.

This commit is contained in:
tianshujie
2023-11-23 11:07:36 +08:00
parent e8accc04fc
commit 5de3fa5cdd
2 changed files with 56 additions and 0 deletions
+20
View File
@@ -513,4 +513,24 @@ class customTest
if(dao::isError()) return dao::getError();
return $count;
}
/**
* 检查系统中是否有审计数据。
* Check if there is auditplan data in the system.
*
* @param string $edition
* @access public
* @return int|array
*/
public function hasScrumAuditplanDataTest(string $edition): int|array
{
$oldEdition = $this->objectModel->config->edition;
$this->objectModel->config->edition = $edition;
$count = $this->objectModel->hasScrumAuditplanData();
$this->objectModel->config->edition = $oldEdition;
if(dao::isError()) return dao::getError();
return $count;
}
}