You are here

protected function UnsavedPreviewTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php \Drupal\Tests\views_ui\Functional\UnsavedPreviewTest::setUp()

Sets up a Drupal site for running functional and integration tests.

Overrides UITestBase::setUp

File

core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php, line 39

Class

UnsavedPreviewTest
Tests covering Preview of unsaved Views.

Namespace

Drupal\Tests\views_ui\Functional

Code

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