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.
64 calls to DrupalWebTestCase::assertNoRaw()
- AnnounceFeedTestSanitizationTestCase::testSanitizedFeedResponse in modules/
announcements_feed/ tests/ announce_feed_test.test - Test the announcements feed with malicious content.
- 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.
File
- modules/
simpletest/ drupal_web_test_case.php, line 3322
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);
}