You are here

protected function MenuPerRoleFunctionalTestBase::setUp in Menu Per Role 8

Throws

\Drupal\Core\Entity\EntityStorageException

Overrides BrowserTestBase::setUp

1 call to MenuPerRoleFunctionalTestBase::setUp()
MenuPerRoleAccessTest::setUp in tests/src/Functional/MenuPerRoleAccessTest.php
1 method overrides MenuPerRoleFunctionalTestBase::setUp()
MenuPerRoleAccessTest::setUp in tests/src/Functional/MenuPerRoleAccessTest.php

File

tests/src/Functional/MenuPerRoleFunctionalTestBase.php, line 51

Class

MenuPerRoleFunctionalTestBase
Base class for Menu Per Role tests.

Namespace

Drupal\Tests\menu_per_role\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->configFactory = $this->container
    ->get('config.factory');
  $this
    ->createMenu('menu1');
  $this
    ->drupalPlaceBlock('system_menu_block:menu1', [
    'region' => 'header',
  ]);
}