public function RequirementsExceptionTest::testGetRequirements in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/Exception/RequirementsExceptionTest.php \Drupal\Tests\migrate\Unit\Exception\RequirementsExceptionTest::testGetRequirements()
- 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\ExceptionCode
public function testGetRequirements() {
$exception = new RequirementsException('Missing requirements ', [
'requirements' => $this->missingRequirements,
]);
$this
->assertEquals([
'requirements' => $this->missingRequirements,
], $exception
->getRequirements());
}