function RequirementsExceptionTest::getRequirementsProvider

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::getRequirementsProvider()
  2. 8.9.x core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::getRequirementsProvider()
  3. 11.x core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::getRequirementsProvider()

Provides a list of requirements to test.

File

core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php, line 38

Class

RequirementsExceptionTest
@coversDefaultClass \Drupal\migrate\Exception\RequirementsException @group migrate

Namespace

Drupal\Tests\migrate\Unit\Exception

Code

public static function getRequirementsProvider() {
    return [
        [
            'requirements: random_jackson_pivot.',
            'Single Requirement',
            [
                'requirements' => static::MISSING_REQUIREMENTS[0],
            ],
        ],
        [
            'requirements: random_jackson_pivot. requirements: exoplanet.',
            'Multiple Requirements',
            [
                'requirements' => static::MISSING_REQUIREMENTS,
            ],
        ],
    ];
}

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