function LayoutAttributeTest::testDeprecatedMissingProperties
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Layout/LayoutAttributeTest.php \Drupal\Tests\Core\Layout\LayoutAttributeTest::testDeprecatedMissingProperties()
Test deprecating plugins without a label or category.
File
-
core/
tests/ Drupal/ Tests/ Core/ Layout/ LayoutAttributeTest.php, line 24
Class
- LayoutAttributeTest
- Tests the Layout attribute.
Namespace
Drupal\Tests\Core\LayoutCode
public function testDeprecatedMissingProperties() : void {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('The "layout_without_label" layout plugin must have at least one of the label or deriver properties.');
new Layout('layout_without_label');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.