+ [misc] Add unit tests for instanceModel::enoughMemory() 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 e997602d5a
commit ddc44af5a2
2 changed files with 64 additions and 0 deletions
@@ -316,4 +316,19 @@ class instanceTest
return $result;
}
/**
* Test enoughMemory method.
*
* @param object $cloudApp
* @access public
* @return bool
*/
public function enoughMemoryTest(object $cloudApp): bool
{
$result = $this->objectModel->enoughMemory($cloudApp);
if(dao::isError()) return dao::getError();
return $result;
}
}