function LanguageContentTaxonomyVocabularySettingsTest::providerSource
Overrides VocabularyTest::providerSource
File
- 
              core/
modules/ language/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d7/ LanguageContentTaxonomyVocabularySettingsTest.php, line 26  
Class
- LanguageContentTaxonomyVocabularySettingsTest
 - Tests i18ntaxonomy vocabulary setting source plugin.
 
Namespace
Drupal\Tests\language\Kernel\Plugin\migrate\source\d7Code
public static 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.