You are here

protected function MenuLinkContentFormTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer menu',
    'link to any page',
  ]);
  $this->basicUser = $this
    ->drupalCreateUser([
    'administer menu',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}