* Unit test

This commit is contained in:
zenggang
2022-05-18 08:37:10 +00:00
parent 9eb969342d
commit f98a844ade
3 changed files with 58 additions and 10 deletions
+18 -3
View File
@@ -16,7 +16,7 @@ class Project
}
/**
* Test start a project.
* Test start a project.
*
* @param int $projectID
* @access public
@@ -35,8 +35,8 @@ class Project
/**
* Test create project.
*
* @param array $params
*
* @param array $params
* @access public
* @return void
*/
@@ -88,4 +88,19 @@ class Project
return $this->project->getByIdList($data['projectIdList']);
}
/**
* Test get all the projects under the program set to which an project belongs
*
* @param object $project
* @access public
* @return void
*/
public function getBrotherProjectsTest($project)
{
$projectIds = $this->project->getBrotherProjects($project);
if(dao::isError()) return array('message' => dao::getError());
return $projectIds;
}
}