function TextSummaryTest::testInvalidFilterFormat

Tests text summaries with an invalid filter format.

See also

text_summary()

File

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

Class

TextSummaryTest
Tests text_summary() with different strings and lengths.

Namespace

Drupal\Tests\text\Kernel

Code

public function testInvalidFilterFormat() : void {
  $this->assertTextSummary($this->randomString(100), '', 'non_existent_format');
}

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