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. 10 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 36

Class

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

Namespace

Drupal\Tests\migrate\Unit\Exception

Code

public function getRequirementsProvider() {
    return [
        [
            'requirements: random_jackson_pivot.',
            'Single Requirement',
            [
                'requirements' => $this->missingRequirements[0],
            ],
        ],
        [
            'requirements: random_jackson_pivot. requirements: 51_Eridani_b.',
            'Multiple Requirements',
            [
                'requirements' => $this->missingRequirements,
            ],
        ],
    ];
}

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