- Remove unit tests of bug-checkBugsForBatchUpdate.

This commit is contained in:
liumengyi
2023-06-01 14:10:45 +08:00
parent e119fa3445
commit f63c831640
-29
View File
@@ -2142,33 +2142,4 @@ class bugTest
return $file;
}
}
/**
* 测试输入的 bugs 是否符合批量编辑的要求。
* Test check bugs for batch edit.
*
* @param array $bugs
* @access public
* @return string
*/
public function checkBugsForBatchUpdateTest(array $bugs): string
{
$this->objectModel->checkBugsForBatchUpdate($bugs);
if(dao::isError())
{
$return = '';
$errors = dao::getError();
foreach($errors as $key => $value)
{
if(is_string($value)) $return .= "{$key}:{$value}";
if(is_array($value)) $return .= "{$key}:" .implode('', $value);
}
return $return;
}
else
{
return 'no error';
}
}
}