You are here

public function CommentTypeRequirementsTest::providerTestCheckCommentTypeRequirements in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php \Drupal\Tests\comment\Kernel\Plugin\migrate\source\CommentTypeRequirementsTest::providerTestCheckCommentTypeRequirements()

Test cases for ::testCheckCommentTypeRequirements().

File

core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php, line 50

Class

CommentTypeRequirementsTest
Tests check requirements for comment type source plugin.

Namespace

Drupal\Tests\comment\Kernel\Plugin\migrate\source

Code

public function providerTestCheckCommentTypeRequirements() {
  return [
    'D6 comment is disabled on source' => [
      'Disabled source modules' => [
        'comment',
      ],
      'RequirementsException message' => 'The module comment is not enabled in the source site.',
      'migration' => 'd6_comment_type',
    ],
    'D6 node is disabled on source' => [
      'Disabled source modules' => [
        'node',
      ],
      'RequirementsException message' => 'The node module is not enabled in the source site.',
      'migration' => 'd6_comment_type',
    ],
    'D6 comment and node are disabled on source' => [
      'Disabled source modules' => [
        'comment',
        'node',
      ],
      'RequirementsException message' => 'The module comment is not enabled in the source site.',
      'migration' => 'd6_comment_type',
    ],
    'D7 comment is disabled on source' => [
      'Disabled source modules' => [
        'comment',
      ],
      'RequirementsException message' => 'The module comment is not enabled in the source site.',
      'migration' => 'd7_comment_type',
    ],
    'D7 node is disabled on source' => [
      'Disabled source modules' => [
        'node',
      ],
      'RequirementsException message' => 'The node module is not enabled in the source site.',
      'migration' => 'd7_comment_type',
    ],
    'D7 comment and node are disabled on source' => [
      'Disabled source modules' => [
        'comment',
        'node',
      ],
      'RequirementsException message' => 'The module comment is not enabled in the source site.',
      'migration' => 'd7_comment_type',
    ],
  ];
}