function RequirementsExceptionTest::testGetRequirements

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

@covers ::getRequirements

File

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

Class

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

Namespace

Drupal\Tests\migrate\Unit\Exception

Code

public function testGetRequirements() : void {
    $exception = new RequirementsException('Missing requirements ', [
        'requirements' => static::MISSING_REQUIREMENTS,
    ]);
    $this->assertEquals([
        'requirements' => static::MISSING_REQUIREMENTS,
    ], $exception->getRequirements());
}

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