You are here

public function MenuBlockTest::testMenuBlockFormDisplay in Menu Block 8

Checks if all menu block configuration options are available.

File

tests/src/Functional/MenuBlockTest.php, line 172

Class

MenuBlockTest
Tests for the menu_block module.

Namespace

Drupal\Tests\menu_block\Functional

Code

public function testMenuBlockFormDisplay() {
  $this
    ->drupalGet('admin/structure/block/add/menu_block:main');
  $this
    ->assertSession()
    ->pageTextContains('Initial visibility level');
  $this
    ->assertSession()
    ->pageTextContains('Number of levels to display');
  $this
    ->assertSession()
    ->pageTextContains('Expand all menu items');
  $this
    ->assertSession()
    ->pageTextContains('Fixed parent item');
  $this
    ->assertSession()
    ->pageTextContains('Make the initial visibility level follow the active menu item.');
  $this
    ->assertSession()
    ->pageTextContains('Theme hook suggestion');
}