/** * @expectedException \Oro\Bundle\WorkflowBundle\Exception\WorkflowException * @expectedExceptionMessage Workflow item entity ID can not be changed */ public function testSetEntityIdException() { $this->workflowItem->setEntityId(1); $this->workflowItem->setEntityId(2); }