+ [misc] Add unit tests for testtaskZen::getBrowseBranch() method

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-19 11:06:00 +08:00
co-authored by Claude
parent 4369542d09
commit 035daabdda
2 changed files with 61 additions and 0 deletions
@@ -44,4 +44,22 @@ class testtaskZenTest
$app->tab = $originalTab;
}
}
/**
* Test getBrowseBranch method.
*
* @param string $branch
* @param string $productType
* @access public
* @return string
*/
public function getBrowseBranchTest($branch = '', $productType = 'normal')
{
$method = $this->testtaskZenTest->getMethod('getBrowseBranch');
$method->setAccessible(true);
$result = $method->invokeArgs($this->testtaskZenTest->newInstance(), array($branch, $productType));
if(dao::isError()) return dao::getError();
return $result;
}
}