/** * @param array $queueItem * @param array $importItemOverwrite * @return void */ protected function importL10nOverlay(array $queueItem, array $importItemOverwrite) { $importItem = $queueItem['importItem']; $parentNews = $this->newsRepository->findOneByImportSourceAndImportId($importItem['import_source'], $importItem['l10n_parent']); if ($parentNews !== NULL) { $news = $this->initializeNewsRecord($importItem); $this->hydrateNewsRecord($news, $importItem, $importItemOverwrite); $news->setSysLanguageUid($importItem['sys_language_uid']); $news->setL10nParent($parentNews->getUid()); } }
/** * Test if by import source is done * * @test * @return void */ public function findRecordsByImportSource() { $news = $this->newsRepository->findOneByImportSourceAndImportId('functional_test', '2'); $this->assertEquals($news->getTitle(), 'findRecordsByImportSource'); }