You are here

function NodeTeaserTest::testFirstSentenceQuestion2 in SimpleTest 6

Simpletest test. A real-life example of the above edge case.

File

tests/node_teaser.test, line 38

Class

NodeTeaserTest

Code

function testFirstSentenceQuestion2() {
  $body = 'Are you an UberBabe? (Or an appreciator of UberBabes?) I am most definitely an UberBabe, and I\'m proud of it. Now, before anyone screams "sexism" or "bias" or "cheap" or anything more profane, let me clarify. An UberBabe is not someone who\'s playfully pierced navel protrudes from a belly bearing top. Not necessarily anyway. An UberBabe is a woman who likes being totally feminine, but is also smart as hell, brave, a rule breaker, speaks her mind, finds her own way, goes up against "the system" in a way that allows the system to evolve, and so on. UberBabes, frankly, kick booty - and they just may save the world.';
  $expectedTeaser = 'Are you an UberBabe? (Or an appreciator of UberBabes?) I am most definitely an UberBabe, and I\'m proud of it. Now, before anyone screams "sexism" or "bias" or "cheap" or anything more profane, let me clarify.';
  $this
    ->callNodeTeaser($body, $expectedTeaser, NULL, 300);
}