function MigrateTaxonomyTermTranslationTest::testTaxonomyTermTranslation
Same name in this branch
- 10 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d7\MigrateTaxonomyTermTranslationTest::testTaxonomyTermTranslation()
Same name in other branches
- 9 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d7\MigrateTaxonomyTermTranslationTest::testTaxonomyTermTranslation()
- 8.9.x core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d7\MigrateTaxonomyTermTranslationTest::testTaxonomyTermTranslation()
- 11.x core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateTaxonomyTermTranslationTest::testTaxonomyTermTranslation()
- 11.x core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d7\MigrateTaxonomyTermTranslationTest::testTaxonomyTermTranslation()
Tests the Drupal i18n taxonomy term to Drupal 8 migration.
Overrides MigrateTaxonomyTermTranslationTest::testTaxonomyTermTranslation
File
-
core/
modules/ forum/ tests/ src/ Kernel/ Migrate/ d7/ MigrateTaxonomyTermTranslationTest.php, line 34
Class
- MigrateTaxonomyTermTranslationTest
- Test migration of translated taxonomy terms.
Namespace
Drupal\Tests\forum\Kernel\Migrate\d7Code
public function testTaxonomyTermTranslation() : void {
// Forums vocabulary, no multilingual option.
$this->assertEntity(1, 'en', 'General discussion', 'forums', NULL, NULL, 2, []);
$this->assertEntity(5, 'en', 'Custom Forum', 'forums', 'Where the cool kids are.', NULL, 3, []);
$this->assertEntity(6, 'en', 'Games', 'forums', NULL, NULL, 4, []);
$this->assertEntity(7, 'en', 'Minecraft', 'forums', NULL, NULL, 1, [
'6',
]);
$this->assertEntity(8, 'en', 'Half Life 3', 'forums', NULL, NULL, 0, [
'6',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.