+ [misc] Add unit tests for productZen::responseAfterCreate() method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-12-02 16:43:28 +08:00
committed by sunhao
co-authored by Claude
parent a8c386a99e
commit d779ef3fe8
+19
View File
@@ -2277,4 +2277,23 @@ class productZenTest extends baseTest
if(dao::isError()) return dao::getError();
return $result;
}
/**
* Test responseAfterCreate method.
*
* @param int $productID
* @param int $programID
* @param string $viewType
* @access public
* @return array
*/
public function responseAfterCreateTest(int $productID = 0, int $programID = 0, string $viewType = '')
{
/* Set view type if provided. */
if($viewType) $this->instance->viewType = $viewType;
$result = $this->invokeArgs('responseAfterCreate', array($productID, $programID));
if(dao::isError()) return dao::getError();
return $result;
}
}