/**
* Test a theme for dependencies and parse errors.
*
* @param string $themeName The case-sensitive theme name.
* @return bool Returns
* @throws Gdn_UserException Throws an exception when there was an issue testing the theme.
*/
public function testTheme($themeName)
{
$addon = $this->addonManager->lookupTheme($themeName);
if (!$addon) {
throw notFoundException('Plugin');
}
try {
$this->addonManager->checkRequirements($addon, true);
$addon->test(true);
} catch (\Exception $ex) {
throw new Gdn_UserException($ex->getMessage(), $ex->getCode());
}
return true;
}