You are here

public function RequirementsExceptionTest::getRequirementsProvider in Drupal 9

Same name and namespace in other branches
  1. 8 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,
      ],
    ],
  ];
}