function UnsavedPreviewTest::setUp

Same name in other branches
  1. 9 core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php \Drupal\Tests\views_ui\Functional\UnsavedPreviewTest::setUp()
  2. 8.9.x core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php \Drupal\Tests\views_ui\Functional\UnsavedPreviewTest::setUp()
  3. 10 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 41

Class

UnsavedPreviewTest
Tests covering Preview of unsaved Views.

Namespace

Drupal\Tests\views_ui\Functional

Code

protected function setUp($import_test_views = TRUE, $modules = [
    'views_test_config',
]) : void {
    parent::setUp(FALSE, $modules);
    $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.