function LayoutAttributeTest::testMissingProperties
Test deprecating plugins without a label or category.
File
-
core/
tests/ Drupal/ Tests/ Core/ Layout/ LayoutAttributeTest.php, line 22
Class
- LayoutAttributeTest
- Tests the Layout attribute.
Namespace
Drupal\Tests\Core\LayoutCode
public function testMissingProperties() : 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.