Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public function testStart()
 {
     $obj = new Transition();
     $this->assertFalse($obj->isStart());
     $obj->setStart(true);
     $this->assertTrue($obj->isStart());
 }