* [misc] Enhance unit tests for gitlabModel::getProjectName() 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:01 +08:00
co-authored by Claude
parent b4de8b1be7
commit a2e0210b54
2 changed files with 26 additions and 15 deletions
@@ -166,7 +166,10 @@ class gitlabTest
public function getProjectNameTest(int $gitlabID, int $projectID)
{
return $this->gitlab->getProjectName($gitlabID, $projectID);
$result = $this->objectModel->getProjectName($gitlabID, $projectID);
if(dao::isError()) return dao::getError();
if($result === false) return '0';
return $result;
}
public function getBranchesTest(int $gitlabID, int $projectID)