예제 #1
0
 /**
  * @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;
 }
예제 #2
0
 /**
  * @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();
 }