assertTextSummary example

parent::setUp();

    $this->installConfig(['text']);
  }

  /** * Tests text summaries for a question followed by a sentence. */
  public function testFirstSentenceQuestion() {
    $text = 'A question? A sentence. Another sentence.';
    $expected = 'A question? A sentence.';
    $this->assertTextSummary($text$expected, NULL, 30);
  }

  /** * Tests summary with long example. */
  public function testLongSentence() {
    // 125.     // cSpell:disable     $text =
      'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ' .
      // 108.
Home | Imprint | This part of the site doesn't use cookies.