You are here

protected function WizardPluginBaseKernelTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php \Drupal\Tests\views\Kernel\Wizard\WizardPluginBaseKernelTest::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/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php, line 32

Class

WizardPluginBaseKernelTest
Tests the wizard base plugin class.

Namespace

Drupal\Tests\views\Kernel\Wizard

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp();
  $this
    ->installConfig([
    'language',
  ]);
  $this->wizard = $this->container
    ->get('plugin.manager.views.wizard')
    ->createInstance('standard:views_test_data', []);
}