You are here

protected function MenuUiNodeTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php \Drupal\Tests\menu_ui\Functional\MenuUiNodeTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php, line 44

Class

MenuUiNodeTest
Add, edit, and delete a node with menu link.

Namespace

Drupal\Tests\menu_ui\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('system_menu_block:main');
  $this
    ->drupalPlaceBlock('page_title_block');
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  $this->editor = $this
    ->drupalCreateUser([
    'access administration pages',
    'administer content types',
    'administer menu',
    'create page content',
    'edit any page content',
    'delete any page content',
    'create content translations',
    'update content translations',
    'delete content translations',
    'translate any entity',
  ]);
  $this
    ->drupalLogin($this->editor);
}