function LanguageContentTaxonomyVocabularySettingsTest::providerSource

Same name in this branch
  1. 11.x core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest::providerSource()
Same name in other branches
  1. 9 core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest::providerSource()
  2. 9 core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d7\LanguageContentTaxonomyVocabularySettingsTest::providerSource()
  3. 8.9.x core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest::providerSource()
  4. 8.9.x core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d7\LanguageContentTaxonomyVocabularySettingsTest::providerSource()
  5. 10 core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d6\LanguageContentTaxonomyVocabularySettingsTest::providerSource()
  6. 10 core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Plugin\migrate\source\d7\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\d7

Code

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.