protected function MenuUiTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/menu_ui/tests/src/Functional/MenuUiTest.php \Drupal\Tests\menu_ui\Functional\MenuUiTest::setUp()
- 10 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() {
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([]);
}