You are here

protected function DrupalWebTestCase::assertNoText in SimpleTest 7

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

Pass if the text is NOT found 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.

9 calls to DrupalWebTestCase::assertNoText()
ActionsConfigurationTestCase::testActionConfiguration in tests/actions.test
Test the configuration of advanced actions through the administration interface.
DrupalGotoTest::testDrupalGoto in tests/common.test
Test setting and retrieving content for theme regions.
DrupalGotoTest::testDrupalGotoAlter in tests/common.test
Test setting and retrieving content for theme regions.
FormsElementsTableSelectFunctionalTest::testMultipleFalse in tests/form.test
Test the display of radios when #multiple is FALSE.
FormsElementsTableSelectFunctionalTest::testMultipleTrue in tests/form.test
Test the display of checkboxes when #multiple is TRUE.

... See full list

File

./drupal_web_test_case.php, line 2040

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function assertNoText($text, $message = '', $group = 'Other') {
  return $this
    ->assertTextHelper($text, $message, $group, TRUE);
}