You are here

protected function MenuLinkTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php \Drupal\Tests\views\Functional\Plugin\MenuLinkTest::setUp()
  2. 9 core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php \Drupal\Tests\views\Functional\Plugin\MenuLinkTest::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\Plugin

Code

protected function setUp($import_test_views = TRUE, $modules = [
  'views_test_config',
]) : void {
  parent::setUp($import_test_views, $modules);
  $this
    ->enableViewsTestModule();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer views',
    'administer menu',
  ]);
  $this
    ->drupalPlaceBlock('system_menu_block:main');
  $this
    ->drupalCreateContentType([
    'type' => 'page',
  ]);
}