You are here

protected function ViewTestBase::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::setUp()
  2. 9 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::setUp()
23 methods override ViewTestBase::setUp()
BlockContentTestBase::setUp in core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
BookRelationshipTest::setUp in core/modules/book/tests/src/Functional/Views/BookRelationshipTest.php
CommentTestBase::setUp in core/modules/comment/tests/src/Functional/Views/CommentTestBase.php
ContactLinkTest::setUp in core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php
DefaultViewRecentCommentsTest::setUp in core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.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, $modules = [
  'views_test_config',
]) : void {
  parent::setUp();
  if ($import_test_views) {
    ViewTestData::createTestViews(static::class, $modules);
  }
}