You are here

protected function TokenReplacementTest::setUp in Tokens in Views Filter Criteria 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

tests/src/Kernel/TokenReplacementTest.php, line 38

Class

TokenReplacementTest
Tests handler token replacement in filter.

Namespace

Drupal\Tests\token_views_filter\Kernel

Code

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