function ViewTestBase::setUp

Same name in this branch
  1. 8.9.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::setUp()
Same name in other branches
  1. 9 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()
  3. 11.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::setUp()

Overrides WebTestBase::setUp

7 calls to ViewTestBase::setUp()
BlockContentTestBase::setUp in core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
Sets up a Drupal site for running functional and integration tests.
CommentTestBase::setUp in core/modules/comment/src/Tests/Views/CommentTestBase.php
Sets up a Drupal site for running functional and integration tests.
FieldTestBase::setUp in core/modules/field/src/Tests/Views/FieldTestBase.php
Sets up a Drupal site for running functional and integration tests.
NodeTestBase::setUp in core/modules/node/src/Tests/Views/NodeTestBase.php
Sets up a Drupal site for running functional and integration tests.
TrackerTestBase::setUp in core/modules/tracker/src/Tests/Views/TrackerTestBase.php
Sets up a Drupal site for running functional and integration tests.

... See full list

7 methods override ViewTestBase::setUp()
BlockContentTestBase::setUp in core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
Sets up a Drupal site for running functional and integration tests.
CommentTestBase::setUp in core/modules/comment/src/Tests/Views/CommentTestBase.php
Sets up a Drupal site for running functional and integration tests.
FieldTestBase::setUp in core/modules/field/src/Tests/Views/FieldTestBase.php
Sets up a Drupal site for running functional and integration tests.
NodeTestBase::setUp in core/modules/node/src/Tests/Views/NodeTestBase.php
Sets up a Drupal site for running functional and integration tests.
TrackerTestBase::setUp in core/modules/tracker/src/Tests/Views/TrackerTestBase.php
Sets up a Drupal site for running functional and integration tests.

... See full list

File

core/modules/views/src/Tests/ViewTestBase.php, line 36

Class

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

Namespace

Drupal\views\Tests

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.