You are here

protected function MenuRouterTest::doTestDescriptionMenuItems in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php \Drupal\Tests\system\Functional\Menu\MenuRouterTest::doTestDescriptionMenuItems()

Tests menu item descriptions.

File

core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php, line 101

Class

MenuRouterTest
Tests menu router and default menu link functionality.

Namespace

Drupal\Tests\system\Functional\Menu

Code

protected function doTestDescriptionMenuItems() {

  // Verify that the menu router item title is output as page title.
  $this
    ->drupalGet('menu_callback_description');
  $this
    ->assertSession()
    ->pageTextContains('Menu item description text');
}