LanguageContentTaxonomyVocabularySettingsTest.php in Drupal 9
File
core/modules/language/tests/src/Kernel/Plugin/migrate/source/d7/LanguageContentTaxonomyVocabularySettingsTest.php
View source
<?php
namespace Drupal\Tests\language\Kernel\Plugin\migrate\source\d7;
use Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7\VocabularyTest;
class LanguageContentTaxonomyVocabularySettingsTest extends VocabularyTest {
protected static $modules = [
'taxonomy',
'language',
'migrate_drupal',
];
public function providerSource() {
$tests = parent::providerSource();
foreach ($tests as &$test) {
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;
}
}