You are here

protected function UnsavedPreviewTest::setUp in Drupal 9

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