function MenuUiNodeTest::setUp
Same name in other branches
- 9 core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php \Drupal\Tests\menu_ui\Functional\MenuUiNodeTest::setUp()
- 10 core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php \Drupal\Tests\menu_ui\Functional\MenuUiNodeTest::setUp()
- 11.x 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\FunctionalCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.