You are here

protected function EntityHierarchyMicrositeKernelTestBase::setUp in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 modules/entity_hierarchy_microsite/tests/src/Kernel/EntityHierarchyMicrositeKernelTestBase.php \Drupal\Tests\entity_hierarchy_microsite\Kernel\EntityHierarchyMicrositeKernelTestBase::setUp()

Overrides EntityHierarchyKernelTestBase::setUp

File

modules/entity_hierarchy_microsite/tests/src/Kernel/EntityHierarchyMicrositeKernelTestBase.php, line 34

Class

EntityHierarchyMicrositeKernelTestBase
Defines a base class for micro-site tests.

Namespace

Drupal\Tests\entity_hierarchy_microsite\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('file');
  $this
    ->installEntitySchema('media');
  $this
    ->installSchema('file', [
    'file_usage',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('entity_hierarchy_microsite');
  $this
    ->installEntitySchema('eh_microsite_menu_override');
  $this
    ->createMediaType('image', [
    'id' => 'image',
  ]);
  $this
    ->installConfig('entity_hierarchy_microsite');
}