You are here

function NodeTeaserTest::testFirstSentenceQuestion in SimpleTest 6

Simpletest test. Tests an edge case where if the first sentence is a question and subsequent sentences are not. This failed in drupal 5. Test and patch for drupal 6 (committed) from http://drupal.org/node/180425

File

tests/node_teaser.test, line 29

Class

NodeTeaserTest

Code

function testFirstSentenceQuestion() {
  $body = 'A question? A sentence. Another sentence.';
  $expectedTeaser = 'A question? A sentence.';
  $this
    ->callNodeTeaser($body, $expectedTeaser, NULL, 30);
}