function MenuExampleTest::setUp

Same name in other branches
  1. 3.x modules/menu_example/tests/src/Functional/MenuExampleTest.php \Drupal\Tests\menu_example\Functional\MenuExampleTest::setUp()

Overrides BrowserTestBase::setUp

File

modules/menu_example/tests/src/Functional/MenuExampleTest.php, line 42

Class

MenuExampleTest
Test the functionality for the menu Example.

Namespace

Drupal\Tests\menu_example\Functional

Code

protected function setUp() : void {
    // Always call the parent setUp().
    parent::setUp();
    // Add the main menu block, as provided by the Block module.
    $this->placeBlock('system_menu_block:main');
}