You are here

public function LayoutPluginManagerTest::testGetCategories in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php \Drupal\Tests\Core\Layout\LayoutPluginManagerTest::testGetCategories()
  2. 9 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 252

Class

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

Namespace

Drupal\Tests\Core\Layout

Code

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