3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests D7 vocabulary source plugin.
10 * @covers \Drupal\taxonomy\Plugin\migrate\source\d7\Vocabulary
13 class VocabularyTest extends MigrateSqlSourceTestBase {
18 public static $modules = ['taxonomy', 'migrate_drupal'];
23 public function providerSource() {
27 $tests[0]['source_data']['taxonomy_vocabulary'] = [
31 'description' => 'Tags description.',
33 'module' => 'taxonomy',
35 'machine_name' => 'tags',
39 'name' => 'Categories',
40 'description' => 'Categories description.',
42 'module' => 'taxonomy',
44 'machine_name' => 'categories',
48 // The expected results.
49 $tests[0]['expected_data'] = $tests[0]['source_data']['taxonomy_vocabulary'];