Пример #1
0
 public function testGetSetState()
 {
     $eventTrigger = new EventTrigger('clown_invasion', 'defcon_1');
     $eventTrigger->setState(new State('defcon_1'));
     $this->assertInstanceOf('\\TyHand\\WorkflowBundle\\Workflow\\State', $eventTrigger->getState());
     $this->assertEquals('defcon_1', $eventTrigger->getState()->getName());
 }