function LayoutPluginManagerTest::testGetCategories

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php \Drupal\Tests\Core\Layout\LayoutPluginManagerTest::testGetCategories()
  2. 8.9.x core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php \Drupal\Tests\Core\Layout\LayoutPluginManagerTest::testGetCategories()
  3. 11.x core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php \Drupal\Tests\Core\Layout\LayoutPluginManagerTest::testGetCategories()

@covers ::getCategories

File

core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php, line 310

Class

LayoutPluginManagerTest
@coversDefaultClass \Drupal\Core\Layout\LayoutPluginManager @group Layout

Namespace

Drupal\Tests\Core\Layout

Code

public function testGetCategories() : void {
    $expected = [
        'Columns: 1',
        'Columns: 2',
    ];
    $categories = $this->layoutPluginManager
        ->getCategories();
    $this->assertEquals($expected, $categories);
}

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