You are here

public function ResponsiveMenuTest::testExistenceOfHorizontalMenu in Responsive and off-canvas menu 4.3.x

Same name and namespace in other branches
  1. 4.4.x tests/src/Functional/ResponsiveMenuTest.php \Drupal\Tests\responsive_menu\Functional\ResponsiveMenuTest::testExistenceOfHorizontalMenu()
  2. 4.1.x tests/src/Functional/ResponsiveMenuTest.php \Drupal\Tests\responsive_menu\Functional\ResponsiveMenuTest::testExistenceOfHorizontalMenu()

Tests that the horizontal menu block is showing.

File

tests/src/Functional/ResponsiveMenuTest.php, line 64

Class

ResponsiveMenuTest
Class SettingsPageTest.

Namespace

Drupal\Tests\responsive_menu\Functional

Code

public function testExistenceOfHorizontalMenu() {
  $this
    ->drupalGet('/node/3');
  $this
    ->assertSession()
    ->elementContains('css', '.responsive-menu-block-wrapper', 'Menu item without children');
}