You are here

public function MenuItemExtrasRenderTest::testMultilevelItems in Menu Item Extras 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/MenuItemExtrasRenderTest.php \Drupal\Tests\menu_item_extras\Functional\MenuItemExtrasRenderTest::testMultilevelItems()

Test multilevel menu item render.

File

tests/src/Functional/MenuItemExtrasRenderTest.php, line 108

Class

MenuItemExtrasRenderTest
Rendering menu items tests.

Namespace

Drupal\Tests\menu_item_extras\Functional

Code

public function testMultilevelItems() {
  $assert = $this
    ->assertSession();
  $this
    ->drupalGet('<front>');
  foreach ($this->links as $link) {
    $assert
      ->pageTextContains($link['title']);
    $assert
      ->pageTextContains($link['body']);
  }
}