/**
  * Test content modifier listener.
  */
 public function testContentModifierListener()
 {
     $this->mockExpectsMethods($this->contEntity, [['getId', 1, 123], ['getTitle', 1, 'testTitle'], ['getContent', 1, 'testContent'], ['getFolder', 1, 'testFolder'], ['getLoadId', 1, 'testLoadId'], ['isSnippet', 1, false], ['getType', 1, 'testType'], ['isActive', 1, true], ['getPosition', 1, 9]]);
     $this->mockExpectsMethods($this->contDocument, [['setId', 1, null, 123], ['setTitle', 1, null, 'testTitle'], ['setContent', 1, null, 'testContent'], ['setFolder', 1, null, 'testFolder'], ['setSlug', 1, null, 'testLoadId'], ['setSnippet', 1, null, false], ['setType', 1, null, 'testType'], ['setActive', 1, null, true], ['setPosition', 1, null, 9]]);
     /** @var ImportItem|MockObject $importItem */
     $importItem = $this->getMockBuilder('ONGR\\ConnectionsBundle\\Pipeline\\Item\\ImportItem')->disableOriginalConstructor()->getMock();
     $importItem->expects($this->once())->method('getEntity')->will($this->returnValue($this->contEntity));
     $importItem->expects($this->once())->method('getDocument')->will($this->returnValue($this->contDocument));
     /** @var ItemPipelineEvent|MockObject $itemPipelineEvent */
     $itemPipelineEvent = $this->getMockBuilder('\\ONGR\\ConnectionsBundle\\Pipeline\\Event\\ItemPipelineEvent')->disableOriginalConstructor()->getMock();
     $itemPipelineEvent->expects($this->once())->method('getItem')->will($this->returnValue($importItem));
     $this->contModifierListener->onModify($itemPipelineEvent);
 }