+ [misc] Add unit tests for productZen::setEditMenu() method
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
sunhao
co-authored by
Claude
parent
d683cba01b
commit
ccd0db9e0a
@@ -2564,4 +2564,29 @@ class productZenTest extends baseTest
|
||||
if(dao::isError()) return dao::getError();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test setEditMenu method.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param int $programID
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function setEditMenuTest(int $productID = 0, int $programID = 0)
|
||||
{
|
||||
ob_start();
|
||||
try {
|
||||
$this->invokeArgs('setEditMenu', array($productID, $programID));
|
||||
} catch (Throwable $e) {}
|
||||
ob_end_clean();
|
||||
|
||||
$result = array(
|
||||
'productID' => $productID,
|
||||
'programID' => $programID
|
||||
);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user