Esempio n. 1
0
 /**
  * Add an event trigger to the state
  *
  * @param EventTrigger $eventTrigger Event trigger to add
  *
  * @return self
  */
 public function addEventTrigger(EventTrigger $eventTrigger)
 {
     // Add to the event triggers array
     $this->events[$eventTrigger->getEventName()] = $eventTrigger;
     return $this;
 }
 public function testGetEventName()
 {
     $eventTrigger = new EventTrigger('cookie_invasion', 'bliss');
     $this->assertEquals('cookie_invasion', $eventTrigger->getEventName());
 }