function 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
-
modules/
field/ modules/ text/ text.test, line 263
Class
Code
function testFirstSentenceQuestion() {
$text = 'A question? A sentence. Another sentence.';
$expected = 'A question? A sentence.';
$this->callTextSummary($text, $expected, NULL, 30);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.