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

133 calls to DrupalWebTestCase::assertNoText()
ActionsConfigurationTestCase::testActionConfiguration in modules/simpletest/tests/actions.test
Test the configuration of advanced actions through the administration interface.
AggregatorRenderingTestCase::testBlockLinks in modules/aggregator/aggregator.test
Adds a feed block to the page and checks its links.
AJAXElementValidation::testAJAXElementValidation in modules/simpletest/tests/ajax.test
Try to post an Ajax change to a form that has a validated element.
AJAXFrameworkTestCase::testLazyLoadOverriddenCSS in modules/simpletest/tests/ajax.test
Tests that overridden CSS files are not added during lazy load.
BlockCacheTestCase::testCachePerPage in modules/block/block.test
Test DRUPAL_CACHE_PER_PAGE.

... See full list

File

modules/simpletest/drupal_web_test_case.php, line 3357

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.