* Add case of program model.

This commit is contained in:
田淑杰
2023-01-06 10:32:59 +08:00
parent 0875144941
commit 09e6d2eefd
2 changed files with 65 additions and 0 deletions
+16
View File
@@ -15,6 +15,22 @@ class programTest
$this->program = $tester->loadModel('program');
}
/**
* Get list by search.
*
* @param string $orderBy
* @param int $queryID
* @param string $sql
* @access public
* @return array
*/
public function getListBySearchTest($orderBy = 'id_asc', $queryID = 0, $sql = '')
{
if(!empty($sql)) $_SESSION['programQuery'] = $sql;
return $this->program->getListBySearch($orderBy, $queryID);
}
/**
* Get pairs.
*