protected function DrupalWebTestCase::assertNoUniqueText

7.x drupal_web_test_case.php protected DrupalWebTestCase::assertNoUniqueText($text, $message = '', $group = 'Other')

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.


$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.

3 calls to DrupalWebTestCase::assertNoUniqueText()
ContactSitewideTestCase::testSiteWideContact in drupal/modules/contact/contact.test
Tests configuration options and the site-wide contact form.
TaxonomyTermTestCase::testTaxonomyNode in drupal/modules/taxonomy/taxonomy.test
Test that hook_node_$op implementations work correctly.
UpdateTestContribCase::testUpdateBrokenFetchURL in drupal/modules/update/update.test
Makes sure that if we fetch from a broken URL, sane things happen.


drupal/modules/simpletest/drupal_web_test_case.php, line 3031


Test case for typical Drupal tests.


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