function MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy

Same name in this branch
  1. 10 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
  2. 10 core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
Same name in other branches
  1. 9 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d6\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
  2. 9 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
  3. 8.9.x core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d6\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
  4. 8.9.x core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
  5. 11.x core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d6\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
  6. 11.x core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()
  7. 11.x core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\forum\Kernel\Migrate\d7\MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy()

Tests migration of 18ntaxonomy vocabulary settings.

File

core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php, line 43

Class

MigrateLanguageContentTaxonomyVocabularySettingsTest
Tests migration of i18ntaxonomy vocabulary settings.

Namespace

Drupal\Tests\language\Kernel\Migrate\d6

Code

public function testLanguageContentTaxonomy() : void {
    $target_entity = 'taxonomy_term';
    // Per Language.
    $this->assertLanguageContentSettings($target_entity, 'vocabulary_1_i_0_', LanguageInterface::LANGCODE_SITE_DEFAULT, TRUE, [
        'enabled' => FALSE,
    ]);
    // Set language to vocabulary.
    $this->assertLanguageContentSettings($target_entity, 'vocabulary_2_i_1_', 'fr', FALSE, [
        'enabled' => FALSE,
    ]);
    // Localize terms.
    $this->assertLanguageContentSettings($target_entity, 'vocabulary_3_i_2_', LanguageInterface::LANGCODE_SITE_DEFAULT, TRUE, [
        'enabled' => FALSE,
    ]);
    // None translation enabled.
    $this->assertLanguageContentSettings($target_entity, 'vocabulary_name_much_longer_th', LanguageInterface::LANGCODE_SITE_DEFAULT, TRUE, [
        'enabled' => TRUE,
    ]);
    $this->assertLanguageContentSettings($target_entity, 'tags', LanguageInterface::LANGCODE_SITE_DEFAULT, FALSE, [
        'enabled' => FALSE,
    ]);
    $this->assertLanguageContentSettings($target_entity, 'forums', LanguageInterface::LANGCODE_SITE_DEFAULT, FALSE, [
        'enabled' => FALSE,
    ]);
    $this->assertLanguageContentSettings($target_entity, 'type', LanguageInterface::LANGCODE_SITE_DEFAULT, FALSE, [
        'enabled' => FALSE,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.