public function TranslationTest::addMappings in Feeds 8.3
Adds multiple mappings to the feed type.
Parameters
array $mappings: A list of mappings.
7 calls to TranslationTest::addMappings()
- 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::testImportTranslationForExistingNode in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests importing a translation for an existing node.
- TranslationTest::testMappingFieldsAnotherLanguageImport in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests importing values for two languages separately.
- TranslationTest::testTranslation in tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php - Tests importing content with Spanish translation.
File
- tests/
src/ Kernel/ Feeds/ Target/ TranslationTest.php, line 591
Class
- TranslationTest
- Test for the entity field translation.
Namespace
Drupal\Tests\feeds\Kernel\Feeds\TargetCode
public function addMappings(array $mappings) {
foreach ($mappings as $mapping_field) {
$this->feedType
->addMapping($mapping_field);
}
}