コード例 #1
0
 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));
 }