+ [misc] Add unit tests for productZen::getBrowseProduct() 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
6174ece150
commit
382bb59de6
@@ -1781,4 +1781,18 @@ class productZenTest extends baseTest
|
||||
if(dao::isError()) return dao::getError();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test getBrowseProduct method.
|
||||
*
|
||||
* @param int $productID
|
||||
* @access public
|
||||
* @return mixed
|
||||
*/
|
||||
public function getBrowseProductTest(int $productID = 0)
|
||||
{
|
||||
$result = $this->invokeArgs('getBrowseProduct', array($productID));
|
||||
if(dao::isError()) return dao::getError();
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user