function RequirementsExceptionTest::testGetExceptionString

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

Class

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

Namespace

Drupal\Tests\migrate\Unit\Exception

Code

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

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