You are here

protected function ViewsListTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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) {
  parent::setUp($import_test_views);
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer views',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}