function TextSummaryTest::testInvalidFilterFormat
Same name and namespace in other branches
- 9 core/modules/text/tests/src/Kernel/TextSummaryTest.php \Drupal\Tests\text\Kernel\TextSummaryTest::testInvalidFilterFormat()
- 8.9.x core/modules/text/tests/src/Kernel/TextSummaryTest.php \Drupal\Tests\text\Kernel\TextSummaryTest::testInvalidFilterFormat()
- 10 core/modules/text/tests/src/Kernel/TextSummaryTest.php \Drupal\Tests\text\Kernel\TextSummaryTest::testInvalidFilterFormat()
Tests text summaries with an invalid filter format.
See also
File
-
core/
modules/ text/ tests/ src/ Kernel/ TextSummaryTest.php, line 237
Class
- TextSummaryTest
- Tests <a href="/api/drupal/core%21modules%21text%21text.module/function/text_summary/11.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\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.