protected function FrontPageLinkDependenciesTest::setUp in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/testing_example/tests/src/Functional/FrontPageLinkDependenciesTest.php \Drupal\Tests\testing_example\Functional\FrontPageLinkDependenciesTest::setUp()
 
Overrides BrowserTestBase::setUp
File
- testing_example/
tests/ src/ Functional/ FrontPageLinkDependenciesTest.php, line 45  
Class
- FrontPageLinkDependenciesTest
 - Tests core menu behavior.
 
Namespace
Drupal\Tests\testing_example\FunctionalCode
protected function setUp() {
  // Always call the parent setUp().
  parent::setUp();
  // Add the Tools menu block, as provided by the Block module.
  $this
    ->placeBlock('system_menu_block:tools');
  // Add a content type.
  $this->contentType = $this
    ->createContentType();
}