function ViewsListTest::setUp

Same name in other branches
  1. 8.9.x core/modules/views_ui/tests/src/Functional/ViewsListTest.php \Drupal\Tests\views_ui\Functional\ViewsListTest::setUp()
  2. 10 core/modules/views_ui/tests/src/Functional/ViewsListTest.php \Drupal\Tests\views_ui\Functional\ViewsListTest::setUp()
  3. 11.x core/modules/views_ui/tests/src/Functional/ViewsListTest.php \Drupal\Tests\views_ui\Functional\ViewsListTest::setUp()

Overrides UITestBase::setUp

File

core/modules/views_ui/tests/src/Functional/ViewsListTest.php, line 37

Class

ViewsListTest
Tests the views list.

Namespace

Drupal\Tests\views_ui\Functional

Code

protected function setUp($import_test_views = TRUE, $modules = []) : void {
    parent::setUp($import_test_views, $modules);
    $this->drupalPlaceBlock('local_tasks_block');
    $this->drupalPlaceBlock('local_actions_block');
    $this->adminUser = $this->drupalCreateUser([
        'administer views',
    ]);
    $this->drupalLogin($this->adminUser);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.