function CommentTypeRequirementsTest::providerTestCheckCommentTypeRequirements

Same name and namespace in other branches
  1. 9 core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php \Drupal\Tests\comment\Kernel\Plugin\migrate\source\CommentTypeRequirementsTest::providerTestCheckCommentTypeRequirements()
  2. 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 52

Class

CommentTypeRequirementsTest
Tests check requirements for comment type source plugin.

Namespace

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

Code

public static function providerTestCheckCommentTypeRequirements() {
    return [
        'D6 comment is disabled on source' => [
            'disabled_source_modules' => [
                'comment',
            ],
            'exception_message' => 'The module comment is not enabled in the source site.',
            'migration_plugin_id' => 'd6_comment_type',
        ],
        'D6 node is disabled on source' => [
            'disabled_source_modules' => [
                'node',
            ],
            'exception_message' => 'The node module is not enabled in the source site.',
            'migration_plugin_id' => 'd6_comment_type',
        ],
        'D6 comment and node are disabled on source' => [
            'disabled_source_modules' => [
                'comment',
                'node',
            ],
            'exception_message' => 'The module comment is not enabled in the source site.',
            'migration_plugin_id' => 'd6_comment_type',
        ],
        'D7 comment is disabled on source' => [
            'disabled_source_modules' => [
                'comment',
            ],
            'exception_message' => 'The module comment is not enabled in the source site.',
            'migration_plugin_id' => 'd7_comment_type',
        ],
        'D7 node is disabled on source' => [
            'disabled_source_modules' => [
                'node',
            ],
            'exception_message' => 'The node module is not enabled in the source site.',
            'migration_plugin_id' => 'd7_comment_type',
        ],
        'D7 comment and node are disabled on source' => [
            'disabled_source_modules' => [
                'comment',
                'node',
            ],
            'exception_message' => 'The module comment is not enabled in the source site.',
            'migration_plugin_id' => 'd7_comment_type',
        ],
    ];
}

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