function RequirementsExceptionTest::testGetRequirements

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::testGetRequirements()
  2. 10 core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::testGetRequirements()
  3. 11.x 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 19

Class

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

Namespace

Drupal\Tests\migrate\Unit\Exception

Code

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

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