You are here

protected function EntitiesTest::setup in Display Suite 8.4

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

File

tests/src/Functional/EntitiesTest.php, line 30

Class

EntitiesTest
Tests for display of nodes and fields.

Namespace

Drupal\Tests\ds\Functional

Code

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

  // Enable field templates.
  \Drupal::configFactory()
    ->getEditable('ds.settings')
    ->set('field_template', TRUE)
    ->save();
  $this->container
    ->get('theme_installer')
    ->install([
    'ds_test_layout_theme',
  ]);
  $config = \Drupal::configFactory()
    ->getEditable('system.theme');
  $config
    ->set('default', 'ds_test_layout_theme')
    ->save();
}