function RequirementsExceptionTest::testGetRequirements
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::testGetRequirements()
- 8.9.x core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::testGetRequirements()
- 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 21
Class
- RequirementsExceptionTest
- @coversDefaultClass \Drupal\migrate\Exception\RequirementsException @group migrate
Namespace
Drupal\Tests\migrate\Unit\ExceptionCode
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.