Merge branch 'sprint/tsj_uinttest' of https://gitlab.zcorp.cc/easycorp/zentaopms into sprint/tsj_uinttest

This commit is contained in:
caoyanyi
2023-01-05 15:35:26 +08:00
4 changed files with 112 additions and 48 deletions
+26 -1
View File
@@ -15,6 +15,31 @@ class programTest
$this->program = $tester->loadModel('program');
}
/**
* Get pairs.
*
* @param bool $isQueryAll
* @param string $orderBy
* @access public
* @return array
*/
public function getPairsTest($isQueryAll = false, $orderBy = 'id_desc')
{
return $this->program->getPairs($isQueryAll, $orderBy);
}
/**
* Get pairs by id list.
*
* @param string $programIDList
* @access public
* @return array
*/
public function getPairsByListTest($programIDList = '')
{
return $this->program->getPairsByList($programIDList);
}
/**
* Test create program.
*
@@ -75,7 +100,7 @@ class programTest
* @access public
* @return void
*/
public function getList($status = 'all', $orderBy = 'id_asc', $pager = NULL, $type = '', $idList = '')
public function getListTest($status = 'all', $orderBy = 'id_asc', $pager = NULL, $type = '', $idList = '')
{
$this->program->cookie->showClosed = 'ture';
$programs = $this->program->getList($status, $orderBy, $pager, $type, $idList);