/** * {@inheritdoc} */ protected function setup() { parent::setup(); // Set extra fields \Drupal::configFactory()->getEditable('ds_extras.settings')->set('region_to_block', TRUE)->set('fields_extra', TRUE)->set('fields_extra_list', array('node|article|ds_extras_extra_test_field', 'node|article|ds_extras_second_field'))->save(); \Drupal::service('entity_field.manager')->clearCachedFieldDefinitions(); }
/** * {@inheritdoc} */ protected function setup() { parent::setup(); // Enable field templates \Drupal::configFactory()->getEditable('ds.settings') ->set('field_template', TRUE) ->save(); }
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), array('ds_test')); }