You are here

public function RequirementsExceptionTest::testGetRequirements in Drupal 8

Same name and namespace in other branches
  1. 9 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
    ->assertArrayEquals([
    'requirements' => $this->missingRequirements,
  ], $exception
    ->getRequirements());
}