/**
  * @expectedException \Oro\Bundle\WorkflowBundle\Exception\WorkflowException
  * @expectedExceptionMessage Workflow ACL identity with ID 1 doesn't have entity ACL
  */
 public function testGetAclAttributeStepKeyNoAclException()
 {
     $this->setEntityId(1);
     $this->aclIdentity->getAclAttributeStepKey();
 }
Beispiel #2
0
 /**
  * @param WorkflowEntityAclIdentity $aclIdentity
  * @return WorkflowItem
  */
 public function removeEntityAcl(WorkflowEntityAclIdentity $aclIdentity)
 {
     $attributeStep = $aclIdentity->getAclAttributeStepKey();
     if ($this->hasAclIdentityByAttribute($attributeStep)) {
         $aclIdentity = $this->getAclIdentityByAttributeStep($attributeStep);
         $this->aclIdentities->removeElement($aclIdentity);
     }
     return $this;
 }