* Add test case.

This commit is contained in:
caoyanyi
2023-01-06 10:38:13 +08:00
parent 60fd9bcfa4
commit 5701d26959
3 changed files with 51 additions and 1 deletions
+18
View File
@@ -402,4 +402,22 @@ class programTest
return $this->program->buildOperateMenu($program);
}
/**
* Test set menu.
*
* @param int $programID
* @access public
* @return void
*/
public function setMenuTest($programID = 0)
{
$program = $this->program->getByID($programID);
if(empty($program)) return '0';
$this->program->setMenu($programID);
global $lang;
return strip_tags($lang->switcherMenu);
}
}