Adding Unit Test to ensure a right behaviour of BpmnWorkflow Adapter

- flow->gateways (bpmn) to route (workflow) conversion is working fine
 - start and end event (bpmn) to setting start and end tasks is working fine
This commit is contained in:
Erik Amaru Ortiz
2014-02-27 15:51:42 -04:00
parent 4615b44032
commit bf933a5bf2
5 changed files with 258 additions and 56 deletions

View File

@@ -226,6 +226,11 @@ class Route extends BaseRoute
return empty($rows) ? null : $rows[0];
}
/**
* @param $field
* @param null $value
* @return \Route[]
*/
public static function findAllBy($field, $value = null)
{
$field = is_array($field) ? $field : array($field => $value);