3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests d6_term_node source plugin.
10 * @covers \Drupal\taxonomy\Plugin\migrate\source\d6\TermNode
13 class TermNodeTest extends MigrateSqlSourceTestBase {
18 public static $modules = ['taxonomy', 'migrate_drupal'];
23 public function providerSource() {
27 $tests[0]['source_data']['term_node'] = [
44 $tests[0]['source_data']['node'] = [
50 'title' => 'Test title',
53 'created' => '1388271197',
54 'changed' => '1420861423',
63 $tests[0]['source_data']['term_data'] = [
67 'name' => 'term 1 of vocabulary 3',
68 'description' => 'description of term 1 of vocabulary 3',
74 'name' => 'term 4 of vocabulary 3',
75 'description' => 'description of term 4 of vocabulary 3',
81 'name' => 'term 5 of vocabulary 3',
82 'description' => 'description of term 5 of vocabulary 3',
87 // The expected results.
88 $tests[0]['expected_data'] = [
97 // Set default value for expected count.
98 $tests[0]['expected_count'] = NULL;
100 // Set plugin configuration.
101 $tests[0]['configuration'] = [