* Add gitlab unit test.

This commit is contained in:
zenggang
2023-12-18 09:30:05 +00:00
parent e49c3c24ef
commit 1a3e7ac456
11 changed files with 371 additions and 36 deletions
-20
View File
@@ -210,24 +210,4 @@ class gitlabTest
{
return $this->gitlab->apiGetSingleProject($gitlabID, $projectID, $useUser);
}
/**
* Get gitlab menu.
*
* @param int $gitlabID
* @param string $type
* @access public
* @return void
*/
public function getGitlabMenuTest($gitlabID, $type = 'project')
{
$html = $this->gitlab->getGitlabMenu($gitlabID, $type);
if(dao::isError())
{
$errors = dao::getError();
return key($errors);
}
return substr($html, 0, 4);
}
}