+ Add unit test for updateEstimateOrder method.

This commit is contained in:
caoyanyi
2023-05-31 13:20:33 +08:00
parent 42d735127c
commit 0ba2047d0e
2 changed files with 43 additions and 0 deletions
+22
View File
@@ -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();
}
}
}