function MenuUiTest::setUp

Overrides BrowserTestBase::setUp

File

core/modules/menu_ui/tests/src/Functional/MenuUiTest.php, line 83

Class

MenuUiTest
Add a custom menu, add menu links to the custom menu and Tools menu, check their data, and delete them using the UI.

Namespace

Drupal\Tests\menu_ui\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->drupalPlaceBlock('page_title_block');
  $this->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  // Create users.
  $this->adminUser = $this->drupalCreateUser([
    'access administration pages',
    'administer blocks',
    'administer menu',
    'create article content',
  ]);
  $this->authenticatedUser = $this->drupalCreateUser([]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.