public function testGetStartTransitions() { $startTransition = new Transition(); $startTransition->setName('start_transition'); $startTransition->setStart(true); $startTransitions = new ArrayCollection(array($startTransition)); $workflow = $this->createWorkflow('test_workflow', array(), $startTransitions->toArray()); $this->assertEquals($startTransitions, $this->workflowManager->getStartTransitions($workflow)); }
public function testStart() { $obj = new Transition(); $this->assertFalse($obj->isStart()); $obj->setStart(true); $this->assertTrue($obj->isStart()); }