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'); }
protected function setUp() { parent::setUp(); $this->doctrineHelper = $this->getMockBuilder('Oro\\Bundle\\EntityBundle\\ORM\\DoctrineHelper')->disableOriginalConstructor()->getMock(); $this->processor = new InitialScheduleProcessor($this->registry, $this->processorRegistry, $this->jobExecutor, $this->typesRegistry, $this->eventDispatcher, $this->logger); $this->processor->setChannelClassName('Oro\\IntegrationBundle\\Entity\\Channel'); $this->processor->setDoctrineHelper($this->doctrineHelper); }