class LayoutAttributeTest

Tests the Layout attribute.

Attributes

#[CoversClass(Layout::class)] #[Group('Layout')] #[IgnoreDeprecations]

Hierarchy

Expanded class hierarchy of LayoutAttributeTest

File

core/tests/Drupal/Tests/Core/Layout/LayoutAttributeTest.php, line 16

Namespace

Drupal\Tests\Core\Layout
View source
class LayoutAttributeTest extends UnitTestCase {
  
  /**
   * Test deprecating plugins without a label or category.
   */
  public function testDeprecatedMissingProperties() : void {
    $this->expectDeprecation('A layout plugin not having at least one of the label or deriver properties is deprecated in drupal:11.4.0 and having at least one of these properties will be enforced in drupal:12.0.0. See https://www.drupal.org/node/3464076');
    new Layout('layout_without_label');
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.