protected function MenuLinkTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php \Drupal\Tests\views\Functional\Plugin\MenuLinkTest::setUp()
Overrides ViewTestBase::setUp
File
- core/
modules/ views/ tests/ src/ Functional/ Plugin/ MenuLinkTest.php, line 51
Class
- MenuLinkTest
- Tests the menu links created in views.
Namespace
Drupal\Tests\views\Functional\PluginCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp($import_test_views);
$this
->enableViewsTestModule();
$this->adminUser = $this
->drupalCreateUser([
'administer views',
'administer menu',
]);
$this
->drupalPlaceBlock('system_menu_block:main');
$this
->drupalCreateContentType([
'type' => 'page',
]);
}