function CommentTypeRequirementsTest::providerTestCheckCommentTypeRequirements

Same name 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()
  2. 11.x 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',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.