PMC-913 All existing Unit Tests are running correctly?

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-06-28 14:24:59 -04:00
parent fbcb996b11
commit 6de0b830a9
10 changed files with 166 additions and 84 deletions

View File

@@ -746,7 +746,13 @@ class Process extends BaseProcess
return $aProcesses;
}
public function getCasesCountForProcess($pro_uid)
/**
* This returns the number of cases for the process.
* @param string $pro_uid
* @return integer
* @see ProcessMaker\Project\Bpmn::canRemove()
*/
public static function getCasesCountForProcess($pro_uid)
{
$oCriteria = new Criteria('workflow');
$oCriteria->addSelectColumn('COUNT(*) AS TOTAL_CASES');