protected function MenuExampleTest::setUp in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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\FunctionalCode
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');
}