function TextSummaryTest::testInvalidFilterFormat

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

Tests text summaries with an invalid filter format.

File

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

Class

TextSummaryTest
Tests TextSummary::generate() 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.