function TextSummaryTest::testInvalidFilterFormat
Tests text summaries with an invalid filter format.
See also
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\KernelCode
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.