protected function setUp()
 {
     parent::setUp();
     $this->processor = new NewsletterSubscriberInitialSyncProcessor($this->registry, $this->processorRegistry, $this->jobExecutor, $this->typesRegistry, $this->eventDispatcher, $this->logger, ['sync_settings' => ['initial_import_step_interval' => '2 days']]);
     $this->processor->setChannelClassName('Oro\\IntegrationBundle\\Entity\\Channel');
     $this->processor->setSubscriberClassName('OroCRM\\Bundle\\MagentoBundle\\Entity\\NewsletterSubscriber');
 }
 /**
  * {@inheritdoc}
  */
 protected function getIntegration(array $connectors = [], \DateTime $syncStartDate = null, $realConnector = null)
 {
     $dictionaryConnector = $this->getMockBuilder('OroCRM\\Bundle\\MagentoBundle\\Provider\\Connector\\WebsiteConnector')->disableOriginalConstructor()->getMock();
     $dictionaryConnector->expects($this->any())->method('getType')->willReturn('dictionary');
     $dictionaryConnector->expects($this->any())->method('getImportJobName')->willReturn('test job');
     $this->typesRegistry->expects($this->any())->method('getRegisteredConnectorsTypes')->willReturn(new ArrayCollection(['dictionaryConnector' => $dictionaryConnector]));
     return parent::getIntegration($connectors, $syncStartDate, $realConnector);
 }