public function testProcess() { $connectors = ['testConnector_initial']; $syncStartDate = new \DateTime('now', new \DateTimeZone('UTC')); $realConnector = new InitialConnector(); $integration = $this->getIntegration($connectors, $syncStartDate, $realConnector); $transport = new MagentoSoapTransport(); $transport->setNewsletterSubscriberSyncedToId(42); $integration->expects($this->any())->method('getTransport')->will($this->returnValue($transport)); $this->assertProcessCalls(); $this->assertExecuteJob(['initialSyncInterval' => '7 days', 'processorAlias' => false, 'entityName' => 'testEntity', 'channel' => 'testChannel', 'channelType' => 'testChannelType', 'initial_id' => 42]); $this->processor->process($integration); }