function TextSummaryTest::setUp

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

Overrides KernelTestBase::setUp

File

core/modules/text/tests/src/Kernel/TextSummaryTest.php, line 32

Class

TextSummaryTest
Tests <a href="/api/drupal/core%21modules%21text%21text.module/function/text_summary/8.9.x" title="Generates a trimmed, formatted version of a text field value." class="local">text_summary</a>() with different strings and lengths.

Namespace

Drupal\Tests\text\Kernel

Code

protected function setUp() {
    parent::setUp();
    $this->installConfig([
        'text',
    ]);
}

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