protected function TranslationTest::importContent in Feeds 8.3
Creates a feed and imports the given source.
Parameters
string $source: The absolute path to the source.
Return value
\Drupal\feeds\FeedInterface The created feed.
10 calls to TranslationTest::importContent()
- TranslationTest::testAutocreatedTermDefaultLanguage in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests importing auto-created terms when no language is configured for it.
- TranslationTest::testAutocreatedTermLanguage in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests if auto-created terms are imported in the configured language.
- TranslationTest::testClearOutValues in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests if values are cleared out when importing empty values.
- TranslationTest::testImportInProcessorConfiguredLanguage in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests that the language setting on the processor is respected.
- TranslationTest::testImportNonDefaultLanguage in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests importing only in a language that is not the default language.
File
- tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php, line 576
Class
- TranslationTest
- Test for the entity field translation.
Namespace
Drupal\Tests\feeds\Kernel\Feeds\TargetCode
protected function importContent($source) {
$feed = $this
->createFeed($this->feedType
->id(), [
'source' => $source,
]);
$feed
->import();
return $feed;
}