protected function MenuUiTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/menu_ui/tests/src/Functional/MenuUiTest.php \Drupal\Tests\menu_ui\Functional\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\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this
->drupalPlaceBlock('page_title_block');
$this
->drupalPlaceBlock('system_menu_block:main');
$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([]);
}