function DrupalWebTestCase::assertNoRaw
Pass if the raw text is NOT found on the loaded page, fail otherwise. Raw text refers to the raw HTML that the page generated.
Parameters
$raw: Raw (HTML) string 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.
63 calls to DrupalWebTestCase::assertNoRaw()
- BlockInvalidRegionTestCase::testBlockInInvalidRegion in modules/
block/ block.test - Tests that blocks assigned to invalid regions work correctly.
- CategorizeFeedTestCase::testCategorizeFeed in modules/
aggregator/ aggregator.test - Creates a feed and makes sure you can add/delete categories to it.
- CommentAnonymous::testAnonymous in modules/
comment/ comment.test - Test anonymous comment functionality.
- CommentRSSUnitTest::testCommentRSS in modules/
comment/ comment.test - Test comments as part of an RSS feed.
- ContactSitewideTestCase::testSiteWideContact in modules/
contact/ contact.test - Tests configuration options and the site-wide contact form.
File
-
modules/
simpletest/ drupal_web_test_case.php, line 3318
Class
- DrupalWebTestCase
- Test case for typical Drupal tests.
Code
protected function assertNoRaw($raw, $message = '', $group = 'Other') {
if (!$message) {
$message = t('Raw "@raw" not found', array(
'@raw' => $raw,
));
}
return $this->assert(strpos($this->drupalGetContent(), (string) $raw) === FALSE, $message, $group);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.