function TextWithSummaryItemTest::setUp

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

Overrides FieldKernelTestBase::setUp

File

core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php, line 43

Class

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

Namespace

Drupal\Tests\text\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('entity_test_rev');
    // Create the necessary formats.
    $this->installConfig([
        'filter',
    ]);
    FilterFormat::create([
        'format' => 'no_filters',
        'name' => 'No filters',
        'filters' => [],
    ])->save();
}

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