* Add test case.

This commit is contained in:
caoyanyi
2023-01-11 13:58:11 +08:00
parent a6f0888097
commit 20286c89fc
2 changed files with 52 additions and 0 deletions
+18
View File
@@ -2390,4 +2390,22 @@ class executionTest
return $result > 0;
}
/**
* Test set menu.
*
* @param int $executionID
* @access public
* @return string
*/
public function setMenuTest($executionID = 0)
{
$execution = $this->objectModel->getByID($executionID);
if(empty($execution)) return '0';
$this->objectModel->setMenu($executionID);
global $lang;
return strip_tags($lang->switcherMenu);
}
}