+ [misc] Add unit tests for programModel::getProductPairsByID() method

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-15 15:06:20 +08:00
co-authored by Claude
parent df162036b8
commit 8b62c145ec
2 changed files with 66 additions and 0 deletions
@@ -653,4 +653,19 @@ class programTest
return $result;
}
/**
* Test getProductPairsByID method.
*
* @param int $programID
* @access public
* @return array
*/
public function getProductPairsByIDTest(int $programID): array
{
$result = $this->program->getProductPairsByID($programID);
if(dao::isError()) return dao::getError();
return $result;
}
}