3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7;
6 * Tests the taxonomy term source with vocabulary filter.
8 * @covers \Drupal\taxonomy\Plugin\migrate\source\d7\Term
11 class TermSourceWithVocabularyFilterTest extends TermTest {
16 public static $modules = ['taxonomy', 'migrate_drupal'];
21 public function providerSource() {
22 // Get the source data from parent.
23 $tests = parent::providerSource();
25 // The expected results.
26 $tests[0]['expected_data'] = [
30 'name' => 'name value 1 (name_field)',
31 'description' => 'description value 1 (description_field)',
38 'name' => 'name value 4 (name_field)',
39 'description' => 'description value 4 (description_field)',
45 // We know there are two rows with machine_name == 'tags'.
46 $tests[0]['expected_count'] = 2;
48 // Set up source plugin configuration.
49 $tests[0]['configuration'] = [