function ComponentInvalidReplacementTest::testInvalidDefinitionTheme
Ensure that component replacement validates the schema compatibility.
File
-
core/
tests/ Drupal/ KernelTests/ Components/ ComponentInvalidReplacementTest.php, line 30
Class
- ComponentInvalidReplacementTest
- Tests invalid render options for components.
Namespace
Drupal\KernelTests\ComponentsCode
public function testInvalidDefinitionTheme() : void {
$this->expectException(IncompatibleComponentSchema::class);
$this->manager
->getDefinitions();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.