3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Core\Field\FieldStorageDefinitionInterface;
6 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
9 * Tests D6 vocabulary source plugin.
11 * @covers \Drupal\taxonomy\Plugin\migrate\source\d6\Vocabulary
14 class VocabularyTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['taxonomy', 'migrate_drupal'];
24 public function providerSource() {
28 $tests[0]['source_data']['vocabulary'] = [
32 'description' => 'Tags description.',
39 'module' => 'taxonomy',
44 'name' => 'Categories',
45 'description' => 'Categories description.',
52 'module' => 'taxonomy',
56 $tests[0]['source_data']['vocabulary_node_types'] = [
71 // The expected results.
72 $tests[0]['expected_data'] = [
76 'description' => 'Tags description.',
83 'module' => 'taxonomy',
85 'node_types' => ['page', 'article'],
86 'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
90 'name' => 'Categories',
91 'description' => 'Categories description.',
98 'module' => 'taxonomy',
100 'node_types' => ['article'],