3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6;
6 * Tests the taxonomy term source with vocabulary filter.
8 * @covers \Drupal\taxonomy\Plugin\migrate\source\d6\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',
31 'description' => 'description value 1',
38 'name' => 'name value 4',
39 'description' => 'description value 4',
45 // We know there are two rows with vid == 5.
46 $tests[0]['expected_count'] = 2;
48 // Set up source plugin configuration.
49 $tests[0]['configuration'] = [