protected function DrupalWebTestCase::assertNoRaw
7.x drupal_web_test_case.php | protected DrupalWebTestCase::assertNoRaw($raw, $message = '', $group = 'Other') |
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.
51 calls to DrupalWebTestCase::assertNoRaw()
- BlockInvalidRegionTestCase::testBlockInInvalidRegion in drupal-7.x/
modules/ block/ block.test - Tests that blocks assigned to invalid regions work correctly.
- CommentAnonymous::testAnonymous in drupal-7.x/
modules/ comment/ comment.test - Test anonymous comment functionality.
- CommentRSSUnitTest::testCommentRSS in drupal-7.x/
modules/ comment/ comment.test - Test comments as part of an RSS feed.
- ContactSitewideTestCase::testSiteWideContact in drupal-7.x/
modules/ contact/ contact.test - Tests configuration options and the site-wide contact form.
- ContextualDynamicContextTestCase::testNodeLinks in drupal-7.x/
modules/ contextual/ contextual.test - Tests contextual links on node lists with different permissions.
File
- drupal-7.x/
modules/ simpletest/ drupal_web_test_case.php, line 2946
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(), $raw) === FALSE, $message, $group);
}