You are here

protected function PhpArgumentValidatorTest::setUp in PHP 8

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

src/Tests/Plugin/views/PhpArgumentValidatorTest.php, line 35

Class

PhpArgumentValidatorTest
Tests Views PHP argument validators.

Namespace

Drupal\php\Tests\Plugin\views

Code

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