public function testStartStep() { $this->assertNull($this->workflowDefinition->getStartStep()); $value = 'step_one'; $this->workflowDefinition->setStartStep($value); $this->assertEquals($value, $this->workflowDefinition->getStartStep()); }
/** * @expectedException \Oro\Bundle\WorkflowBundle\Exception\WorkflowException * @expectedExceptionMessage Workflow "test" does not contain step "start_step" */ public function testStartStepNoStep() { $this->workflowDefinition->setName('test'); $this->assertNull($this->workflowDefinition->getStartStep()); $startStep = new WorkflowStep(); $startStep->setName('start_step'); $this->workflowDefinition->setStartStep($startStep); $this->assertEquals($startStep, $this->workflowDefinition->getStartStep()); }