function PluginInstanceTest::setUp

Same name in other branches
  1. 9 core/modules/views/tests/src/Kernel/PluginInstanceTest.php \Drupal\Tests\views\Kernel\PluginInstanceTest::setUp()
  2. 8.9.x core/modules/views/tests/src/Kernel/PluginInstanceTest.php \Drupal\Tests\views\Kernel\PluginInstanceTest::setUp()
  3. 10 core/modules/views/tests/src/Kernel/PluginInstanceTest.php \Drupal\Tests\views\Kernel\PluginInstanceTest::setUp()

Overrides ViewsKernelTestBase::setUp

File

core/modules/views/tests/src/Kernel/PluginInstanceTest.php, line 68

Class

PluginInstanceTest
Tests that an instance of all views plugins can be created.

Namespace

Drupal\Tests\views\Kernel

Code

protected function setUp($import_test_views = TRUE) : void {
    parent::setUp();
    $this->definitions = Views::getPluginDefinitions();
}

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