* @package solution * @link https://www.zentao.net */ class solutionTest { public function __construct() { su('admin'); global $tester; $this->objectModel = $tester->loadModel('solution'); } /** * Test getByID method. * * @param int $solutionID * @access public * @return object|null */ public function getByIdTest(int $solutionID): object|null { return $this->objectModel->getByID($solutionID); } /** * Test getLastSolution method. * * @access public * @return object|false */ public function getLastSolutionTest(): object|false { dao::$cache = array(); return $this->objectModel->getLastSolution(); } }