3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests D6 i18n vocabulary source plugin.
10 * @covers \Drupal\taxonomy\Plugin\migrate\source\d6\VocabularyTranslation
13 class VocabularyTranslationTest extends MigrateSqlSourceTestBase {
18 public static $modules = ['taxonomy', 'migrate_drupal'];
23 public function providerSource() {
27 $tests[0][0]['i18n_strings'] = [
31 'type' => 'vocabulary',
39 'type' => 'vocabulary',
46 $tests[0][0]['locales_target'] = [
50 'translation' => 'fr - vocabulary 1',
58 'translation' => 'fr - vocabulary 2',
65 $tests[0][0]['vocabulary'] = [
68 'name' => 'vocabulary 1',
69 'description' => 'description of vocabulary 1',
76 'module' => 'taxonomy',
82 'name' => 'vocabulary 2',
83 'description' => 'description of vocabulary 2',
90 'module' => 'taxonomy',
96 $tests[0]['expected_results'] = [
99 'name' => 'vocabulary 1',
100 'description' => 'description of vocabulary 1',
102 'type' => 'vocabulary',
103 'property' => 'name',
106 'translation' => 'fr - vocabulary 1',
111 'name' => 'vocabulary 2',
112 'description' => 'description of vocabulary 2',
114 'type' => 'vocabulary',
115 'property' => 'name',
118 'translation' => 'fr - vocabulary 2',