You are here

protected function ViewTestBase::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::setUp()
  2. 10 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::setUp()

Overrides BrowserTestBase::setUp

63 calls to ViewTestBase::setUp()
AccessTest::setUp in core/modules/views/tests/src/Functional/Plugin/AccessTest.php
AreaTest::setUp in core/modules/views/tests/src/Functional/Handler/AreaTest.php
AreaTitleWebTest::setUp in core/modules/views/tests/src/Functional/Handler/AreaTitleWebTest.php
ArgumentDefaultTest::setUp in core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
BaseFieldAccessTest::setUp in core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php

... See full list

74 methods override ViewTestBase::setUp()
AccessTest::setUp in core/modules/views/tests/src/Functional/Plugin/AccessTest.php
AreaTest::setUp in core/modules/views/tests/src/Functional/Handler/AreaTest.php
AreaTitleWebTest::setUp in core/modules/views/tests/src/Functional/Handler/AreaTitleWebTest.php
ArgumentDefaultTest::setUp in core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
BaseFieldAccessTest::setUp in core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php

... See full list

File

core/modules/views/tests/src/Functional/ViewTestBase.php, line 32

Class

ViewTestBase
Defines a base class for Views testing in the full web test environment.

Namespace

Drupal\Tests\views\Functional

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp();
  if ($import_test_views) {
    ViewTestData::createTestViews(static::class, [
      'views_test_config',
    ]);
  }
}