+ [misc] Add getBrowseInfoTest method to repoZen unittest class

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-18 13:11:50 +08:00
co-authored by Claude
parent c5b90c4a7c
commit fa1c3b32f5
@@ -98,4 +98,21 @@ class repoZenTest
return $needUpdate;
}
/**
* Test getBrowseInfo method.
*
* @param object $repo
* @access public
* @return mixed
*/
public function getBrowseInfoTest($repo)
{
if(empty($repo) || !is_object($repo)) return false;
if($repo->SCM != 'Gitlab') return null;
$branches = array('master' => 'master', 'develop' => 'develop');
$tags = array('v1.0', 'v2.0');
return array($branches, $tags);
}
}