* [misc] Enhance unit tests for gitlabModel::apiDeleteGroup() 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:15:59 +08:00
co-authored by Claude
parent 3ba5114f2c
commit ef5df1ff6b
2 changed files with 37 additions and 36 deletions
@@ -49,6 +49,22 @@ class gitlabTest
return $pairs;
}
/**
* Test apiDeleteGroup method.
*
* @param int $gitlabID
* @param int $groupID
* @access public
* @return mixed
*/
public function apiDeleteGroupTest($gitlabID = null, $groupID = null)
{
$result = $this->gitlab->apiDeleteGroup($gitlabID, $groupID);
if(dao::isError()) return dao::getError();
return $result;
}
public function getApiRootTest(int $gitlabID, bool $sudo = true)
{
return $this->gitlab->getApiRoot($gitlabID, $sudo);