* [misc] Enhance unit tests for gitlabModel::apiGetSingleTag() 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:00 +08:00
co-authored by Claude
parent 62bd63cf06
commit 2f8cb567bd
2 changed files with 34 additions and 22 deletions
@@ -212,17 +212,20 @@ class gitlabTest
}
/**
* Api get signle tag.
* Test apiGetSingleTag method.
*
* @param int $gitlabID
* @param int $projectID
* @param string $tag
* @access public
* @return object
* @return mixed
*/
public function apiGetSingleTagTest($gitlabID, $projectID, $tag)
{
return $this->gitlab->apiGetSingleTag($gitlabID, $projectID, $tag);
$result = $this->gitlab->apiGetSingleTag($gitlabID, $projectID, $tag);
if(dao::isError()) return dao::getError();
return $result;
}
/**