You are here

protected function MenuExampleTest::setUp in Examples for Developers 8

Same name and namespace 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

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() {

  // Always call the parent setUp().
  parent::setUp();

  // Add the main menu block, as provided by the Block module.
  $this
    ->placeBlock('system_menu_block:main');
}