+ Add unit test for updateEstimateOrder method.
This commit is contained in:
@@ -2160,4 +2160,26 @@ class taskTest
|
||||
->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test updateEstimateOrder method.
|
||||
*
|
||||
* @param int $effortID
|
||||
* @access public
|
||||
* @return object|bool
|
||||
*/
|
||||
public function updateEstimateOrderTest(int $effortID): object|bool
|
||||
{
|
||||
$this->objectModel->updateEstimateOrder($effortID, 1);
|
||||
if(dao::isError())
|
||||
{
|
||||
return !dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->objectModel->dao->select('*')->from(TABLE_EFFORT)
|
||||
->where('id')->eq($effortID)
|
||||
->fetch();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user