You are here

protected function MenuLinksOriginTest::setUp in Menu Item Extras 8.2

Overrides KernelTestBase::setUp

File

tests/src/Kernel/MenuLinksOriginTest.php, line 53

Class

MenuLinksOriginTest
Tests handling of menu links hierarchies.

Namespace

Drupal\Tests\menu_item_extras\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->menuLinkManager = \Drupal::service('plugin.manager.menu.link');
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->installEntitySchema('menu_link_content');
  $this
    ->installEntitySchema('user');
  Menu::create([
    'id' => 'menu_test',
    'label' => 'Test menu',
    'description' => 'Description text',
  ])
    ->save();
}