You are here

protected function MenuLinkContentFormTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php \Drupal\Tests\menu_link_content\Functional\MenuLinkContentFormTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/menu_link_content/tests/src/Functional/MenuLinkContentFormTest.php, line 48

Class

MenuLinkContentFormTest
Tests the menu link content UI.

Namespace

Drupal\Tests\menu_link_content\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer menu',
    'link to any page',
  ]);
  $this->basicUser = $this
    ->drupalCreateUser([
    'administer menu',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}