3 namespace Drupal\Tests\comment\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests D6 comment source plugin.
10 * @covers \Drupal\comment\Plugin\migrate\source\d6\Comment
13 class CommentTest extends MigrateSqlSourceTestBase {
18 public static $modules = ['comment', 'migrate_drupal'];
23 public function providerSource() {
27 $tests[0]['source_data']['comments'] = [
33 'subject' => 'subject value 1',
34 'comment' => 'comment value 1',
35 'hostname' => 'hostname value 1',
36 'timestamp' => 1382255613,
42 'format' => 'testformat1',
50 'subject' => 'subject value 2',
51 'comment' => 'comment value 2',
52 'hostname' => 'hostname value 2',
53 'timestamp' => 1382255662,
59 'format' => 'testformat2',
64 $tests[0]['source_data']['node'] = [
75 // The expected results.
76 $tests[0]['expected_data'] = [
82 'subject' => 'subject value 1',
83 'comment' => 'comment value 1',
84 'hostname' => 'hostname value 1',
85 'timestamp' => 1382255613,
91 'format' => 'testformat1',
99 'subject' => 'subject value 2',
100 'comment' => 'comment value 2',
101 'hostname' => 'hostname value 2',
102 'timestamp' => 1382255662,
108 'format' => 'testformat2',