* change testcase getByAssigento => getByAssignedTo, getByOpened => getByOpenedBy.

This commit is contained in:
wangyidong
2016-03-14 14:51:11 +08:00
parent fa11f088a6
commit d0a31b775e
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -311,7 +311,7 @@ class testcaseModel extends model
}
/**
* Get cases by assigento.
* Get cases by assignedTo.
*
* @param string $account
* @param string $orderBy
@@ -319,7 +319,7 @@ class testcaseModel extends model
* @access public
* @return array
*/
public function getByAssigento($account, $orderBy = 'id_desc', $pager = null)
public function getByAssignedTo($account, $orderBy = 'id_desc', $pager = null)
{
return $this->dao->select('t1.assignedTo AS assignedTo, t2.*')->from(TABLE_TESTRUN)->alias('t1')
->leftJoin(TABLE_CASE)->alias('t2')->on('t1.case = t2.id')
@@ -341,7 +341,7 @@ class testcaseModel extends model
* @access public
* @return array
*/
public function getByOpened($account, $orderBy = 'id_desc', $pager = null)
public function getByOpenedBy($account, $orderBy = 'id_desc', $pager = null)
{
return $this->dao->findByOpenedBy($account)->from(TABLE_CASE)
->andWhere('deleted')->eq(0)