+ [misc] Add unit tests for instanceModel::deleteBackupCron() method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-15 15:06:17 +08:00
co-authored by Claude
parent f1639bf426
commit f9f6640134
4 changed files with 191 additions and 0 deletions
@@ -498,4 +498,19 @@ class instanceTest
return $result;
}
/**
* Test deleteBackupCron method.
*
* @param object $instance
* @access public
* @return bool
*/
public function deleteBackupCronTest(object $instance): bool
{
$result = $this->objectModel->deleteBackupCron($instance);
if(dao::isError()) return dao::getError();
return $result;
}
}