* Add test case.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user