You are here

protected function BlockFieldPluginTest::setUp in Display Suite 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/BlockFieldPluginTest.php \Drupal\Tests\ds\Functional\BlockFieldPluginTest::setUp()

Overrides TestBase::setUp

File

tests/src/Functional/BlockFieldPluginTest.php, line 40

Class

BlockFieldPluginTest
Tests for managing custom code, and block fields.

Namespace

Drupal\Tests\ds\Functional

Code

protected function setUp() {
  parent::setUp();

  // Ensure that the plugin definitions are cleared.
  foreach (ViewExecutable::getPluginTypes() as $plugin_type) {
    $this->container
      ->get("plugin.manager.views.{$plugin_type}")
      ->clearCachedDefinitions();
  }
  ViewTestData::createTestViews(get_class($this), [
    'ds_test',
  ]);
}