You are here

protected function DrupalWebTestCase::assertNoUniqueText in SimpleTest 7.2

Same name and namespace in other branches
  1. 6.2 drupal_web_test_case.php \DrupalWebTestCase::assertNoUniqueText()
  2. 7 drupal_web_test_case.php \DrupalWebTestCase::assertNoUniqueText()

Pass if the text is found MORE THAN ONCE on the text version of the page.

The text version is the equivalent of what a user would see when viewing through a web browser. In other words the HTML has been filtered out of the contents.

Parameters

$text: Plain text to look for.

$message: Message to display.

$group: The group this message belongs to, defaults to 'Other'.

Return value

TRUE on pass, FALSE on fail.

File

./drupal_web_test_case.php, line 2860
Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function assertNoUniqueText($text, $message = '', $group = 'Other') {
  return $this
    ->assertUniqueTextHelper($text, $message, $group, FALSE);
}