You are here

protected function ViewsIntegrationTest::setUp in Drupal 10

Same name in this branch
  1. 10 core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php \Drupal\Tests\responsive_image\Functional\ViewsIntegrationTest::setUp()
  2. 10 core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php \Drupal\Tests\dblog\Kernel\Views\ViewsIntegrationTest::setUp()
Same name and namespace in other branches
  1. 8 core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php \Drupal\Tests\dblog\Kernel\Views\ViewsIntegrationTest::setUp()
  2. 9 core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php \Drupal\Tests\dblog\Kernel\Views\ViewsIntegrationTest::setUp()

Parameters

bool $import_test_views: Should the views specified on the test class be imported. If you need to setup some additional stuff, like fields, you need to call false and then call createTestViews for your own.

Overrides ViewsKernelTestBase::setUp

File

core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php, line 39

Class

ViewsIntegrationTest
Tests the views integration of dblog module.

Namespace

Drupal\Tests\dblog\Kernel\Views

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('dblog', [
    'watchdog',
  ]);
  ViewTestData::createTestViews(static::class, [
    'dblog_test_views',
  ]);
}