class LanguageContentTaxonomyVocabularySettingsTest

Same name in this branch
  1. 9 core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest
Same name and namespace in other branches
  1. 10 core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest
  2. 10 core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d7\LanguageContentTaxonomyVocabularySettingsTest
  3. 11.x core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest
  4. 11.x core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d7\LanguageContentTaxonomyVocabularySettingsTest
  5. 8.9.x core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest
  6. 8.9.x core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d7\LanguageContentTaxonomyVocabularySettingsTest

Tests i18ntaxonomy vocabulary setting source plugin.

@covers \Drupal\language\Plugin\migrate\source\d7\LanguageContentSettingsTaxonomyVocabulary

@group language

Hierarchy

Expanded class hierarchy of LanguageContentTaxonomyVocabularySettingsTest

File

core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php, line 14

Namespace

Drupal\Tests\language\Kernel\Plugin\migrate\source\d7
View source
class LanguageContentTaxonomyVocabularySettingsTest extends VocabularyTest {
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'taxonomy',
    'language',
    'migrate_drupal',
  ];
  
  /**
   * {@inheritdoc}
   */
  public function providerSource() {
    // Get the source data from parent.
    $tests = parent::providerSource();
    foreach ($tests as &$test) {
      // Add the extra columns provided by i18n_taxonomy.
      foreach ($test['source_data']['taxonomy_vocabulary'] as &$vocabulary) {
        $vocabulary['language'] = 'und';
        $vocabulary['i18n_mode'] = 2;
      }
      foreach ($test['expected_data'] as &$expected) {
        $expected['language'] = 'und';
        $expected['i18n_mode'] = 2;
      }
    }
    return $tests;
  }

}

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