Ejemplo n.º 1
0
 public function testDispatch()
 {
     $data = ['someData'];
     $eventName = 'eventName';
     $event = new \Magento\Framework\Event($data);
     $event->setData('name', $eventName);
     $this->collection->dispatch($eventName, $data);
 }