You are here

public function MigrateCommentTypeTest::providerTestNoCommentTypeMigration in Drupal 9

Same name in this branch
  1. 9 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentTypeTest::providerTestNoCommentTypeMigration()
  2. 9 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentTypeTest::providerTestNoCommentTypeMigration()

Provides test cases for ::testNoCommentTypeMigration().

File

core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php, line 114

Class

MigrateCommentTypeTest
Tests the migration of comment types from Drupal 6.

Namespace

Drupal\Tests\comment\Kernel\Migrate\d6

Code

public function providerTestNoCommentTypeMigration() {
  return [
    'Node module is disabled in source' => [
      'Disabled source modules' => [
        'node',
      ],
      'Expected messages' => [
        'error' => [
          'Migration d6_comment_type did not meet the requirements. The node module is not enabled in the source site. source_module_additional: node.',
        ],
      ],
    ],
    'Comment module is disabled in source' => [
      'Disabled source modules' => [
        'comment',
      ],
      'Expected messages' => [
        'error' => [
          'Migration d6_comment_type did not meet the requirements. The module comment is not enabled in the source site. source_module: comment.',
        ],
      ],
    ],
    'Node and comment modules are disabled in source' => [
      'Disabled source modules' => [
        'comment',
        'node',
      ],
      'Expected messages' => [
        'error' => [
          'Migration d6_comment_type did not meet the requirements. The module comment is not enabled in the source site. source_module: comment.',
        ],
      ],
    ],
  ];
}