+ [misc] Add unit tests for instanceModel::isClickable() 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 ddc44af5a2
commit 90abf9f2fe
2 changed files with 56 additions and 0 deletions
@@ -331,4 +331,20 @@ class instanceTest
return $result;
}
/**
* Test isClickable method.
*
* @param object $instance
* @param string $action
* @access public
* @return bool
*/
public function isClickableTest(object $instance, string $action): bool
{
$result = $this->objectModel->isClickable($instance, $action);
if(dao::isError()) return dao::getError();
return $result;
}
}