+ Add custom::hasScrumAuditplanData unit test.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user