1 text.test TextSummaryTestCase::testFirstSentenceQuestion()

Tests an edge case where the first sentence is a question and subsequent sentences are not. This edge case is documented at http://drupal.org/node/180425.

File

core/modules/field/modules/text/tests/text.test, line 400
Tests for text.module.

Class

TextSummaryTestCase

Code

function testFirstSentenceQuestion() {
  $text = 'A question? A sentence. Another sentence.';
  $expected = 'A question? A sentence.';
  $this->assertTextSummary($text, $expected, NULL, 30);
}