* [misc] Enhance unit tests for programplanTao::getStageList() method

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-25 09:16:46 +08:00
co-authored by Claude
parent acae67fa38
commit b4498a1f44
2 changed files with 64 additions and 22 deletions
@@ -1007,4 +1007,26 @@ class programplanTest
return $result;
}
/**
* Test getStageList method.
*
* @param int $executionID
* @param int $productID
* @param string $browseType
* @param string $orderBy
* @access public
* @return array
*/
public function getStageListTest(int $executionID, int $productID, string $browseType, string $orderBy = 'id_asc'): array
{
$reflection = new ReflectionClass($this->objectTao);
$method = $reflection->getMethod('getStageList');
$method->setAccessible(true);
$result = $method->invoke($this->objectTao, $executionID, $productID, $browseType, $orderBy);
if(dao::isError()) return dao::getError();
return $result;
}
}