3 namespace Drupal\Tests\comment\Kernel\Plugin\migrate\source\d6;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests comment variable per comment type source plugin.
10 * @covers \Drupal\comment\Plugin\migrate\source\d6\CommentVariablePerCommentType
13 class CommentVariablePerCommentTypeTest extends MigrateSqlSourceTestBase {
18 public static $modules = ['comment', 'migrate_drupal'];
23 public function providerSource() {
27 $tests[0]['source_data']['node_type'] = [
36 $tests[0]['source_data']['variable'] = [
38 'name' => 'comment_subject_field_page',
39 'value' => serialize(1),
42 'name' => 'comment_subject_field_story',
43 'value' => serialize(0),
47 // The expected results.
48 // Each result will also include a label and description, but those are
49 // static values set by the source plugin and don't need to be asserted.
50 $tests[0]['expected_data'] = [
52 'comment_type' => 'comment',
55 'comment_type' => 'comment_no_subject',