+ [misc] Add unit tests for instanceModel::freshStatus() 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:16 +08:00
co-authored by Claude
parent e9af847f6d
commit e997602d5a
3 changed files with 271 additions and 0 deletions
@@ -301,4 +301,19 @@ class instanceTest
return $result;
}
/**
* Test freshStatus method.
*
* @param object $instance
* @access public
* @return object
*/
public function freshStatusTest(object $instance): object
{
$result = $this->objectModel->freshStatus($instance);
if(dao::isError()) return dao::getError();
return $result;
}
}