You are here

public function RequirementsExceptionTest::testGetExceptionString 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::testGetExceptionString()
  2. 10 core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::testGetExceptionString()

@covers ::getRequirementsString @dataProvider getRequirementsProvider

File

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

Class

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

Namespace

Drupal\Tests\migrate\Unit\Exception

Code

public function testGetExceptionString($expected, $message, $requirements) {
  $exception = new RequirementsException($message, $requirements);
  $this
    ->assertEquals($expected, $exception
    ->getRequirementsString());
}