/**
  * Test onConsume action.
  */
 public function testOnConsume()
 {
     $item = $this->getMock('ONGR\\ConnectionsBundle\\Sync\\DiffProvider\\Item\\AbstractDiffItem');
     $this->itemPipelineEvent->expects($this->once())->method('getItem')->will($this->returnValue($item));
     $this->extractor->expects($this->once())->method('extract')->with($item);
     $this->listener->onConsume($this->itemPipelineEvent);
 }
 /**
  * Consumes given event.
  *
  * @param ItemPipelineEvent $event
  */
 public function consume(ItemPipelineEvent $event)
 {
     $this->extractor->extract($event->getItem());
 }