/** * @param WorkflowEntityAcl $acl * @return WorkflowDefinition */ public function removeEntityAcl(WorkflowEntityAcl $acl) { $attributeStep = $acl->getAttributeStepKey(); if ($this->hasEntityAclByAttributeStep($attributeStep)) { $acl = $this->getEntityAclByAttributeStep($attributeStep); $this->entityAcls->removeElement($acl); } return $this; }
/** * @expectedException \Oro\Bundle\WorkflowBundle\Exception\WorkflowException * @expectedExceptionMessage Workflow entity ACL with ID 1 doesn't have workflow step */ public function testGetAttributeStepKeyNoStepException() { $this->setEntityId(1); $this->entityAcl->getAttributeStepKey(); }