function FieldTypeTest::setUp

Same name and namespace in other branches
  1. 10 core/modules/block_content/tests/src/Kernel/Views/FieldTypeTest.php \Drupal\Tests\block_content\Kernel\Views\FieldTypeTest::setUp()

Overrides ViewsKernelTestBase::setUp

File

core/modules/block_content/tests/src/Kernel/Views/FieldTypeTest.php, line 38

Class

FieldTypeTest
Tests the Drupal\block_content\Plugin\views\field\Type handler.

Namespace

Drupal\Tests\block_content\Kernel\Views

Code

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

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