You are here

protected function MenuLinkTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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\Plugin

Code

protected function setUp($import_test_views = TRUE) {
  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',
  ]);
}