You are here

protected function TextWithSummaryItemTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/text/src/Tests/TextWithSummaryItemTest.php \Drupal\text\Tests\TextWithSummaryItemTest::setUp()

Set the default field storage backend for fields created during tests.

Overrides FieldUnitTestBase::setUp

File

core/modules/text/src/Tests/TextWithSummaryItemTest.php, line 43
Contains \Drupal\text\Tests\TextWithSummaryItemTest.

Class

TextWithSummaryItemTest
Tests using entity fields of the text summary field type.

Namespace

Drupal\text\Tests

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('entity_test_rev');

  // Create the necessary formats.
  $this
    ->installConfig(array(
    'filter',
  ));
  entity_create('filter_format', array(
    'format' => 'no_filters',
    'filters' => array(),
  ))
    ->save();
}