🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
560 B
PHP
26 lines
560 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
class qaTest
|
|
{
|
|
public function __construct()
|
|
{
|
|
global $tester;
|
|
$this->objectModel = $tester->loadModel('qa');
|
|
}
|
|
|
|
/**
|
|
* Test setMenu method.
|
|
*
|
|
* @param int $productID
|
|
* @param int|string $branch
|
|
* @access public
|
|
* @return mixed
|
|
*/
|
|
public function setMenuTest($productID = 0, $branch = '')
|
|
{
|
|
$result = $this->objectModel->setMenu($productID, $branch);
|
|
if(dao::isError()) return dao::getError();
|
|
|
|
return $result;
|
|
}
|
|
} |