You are here

protected function MicrositeFunctionalTestBase::setUp in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeFunctionalTestBase.php \Drupal\Tests\entity_hierarchy_microsite\Functional\MicrositeFunctionalTestBase::setUp()

Overrides BrowserTestBase::setUp

2 calls to MicrositeFunctionalTestBase::setUp()
MicrositeLogoBrandingBlockTest::setUp in modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeLogoBrandingBlockTest.php
MicrositeMenuBlockTest::setUp in modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeMenuBlockTest.php
2 methods override MicrositeFunctionalTestBase::setUp()
MicrositeLogoBrandingBlockTest::setUp in modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeLogoBrandingBlockTest.php
MicrositeMenuBlockTest::setUp in modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeMenuBlockTest.php

File

modules/entity_hierarchy_microsite/tests/src/Functional/MicrositeFunctionalTestBase.php, line 39

Class

MicrositeFunctionalTestBase
Defines a base class for testing microsite.

Namespace

Drupal\Tests\entity_hierarchy_microsite\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->drupalPlaceBlock('page_title_block', [
    'region' => 'content',
  ]);
  $this
    ->drupalCreateContentType([
    'type' => 'basic',
  ]);
  $this
    ->setupEntityHierarchyField('node', 'basic', 'field_parents');
  $this
    ->createMediaType('image', [
    'id' => 'image',
  ]);
}