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

60 calls to DrupalWebTestCase::assertNoRaw()
BlockInvalidRegionTestCase::testBlockInInvalidRegion in drupal/modules/block/block.test
Tests that blocks assigned to invalid regions work correctly.
CategorizeFeedTestCase::testCategorizeFeed in drupal/modules/aggregator/aggregator.test
Creates a feed and makes sure you can add/delete categories to it.
CommentAnonymous::testAnonymous in drupal/modules/comment/comment.test
Test anonymous comment functionality.
CommentRSSUnitTest::testCommentRSS in drupal/modules/comment/comment.test
Test comments as part of an RSS feed.
ContactSitewideTestCase::testSiteWideContact in drupal/modules/contact/contact.test
Tests configuration options and the site-wide contact form.

... See full list

File

drupal/modules/simpletest/drupal_web_test_case.php, line 3031

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);
}