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/modules/block/block.test
Tests that blocks assigned to invalid regions work correctly.
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.
ContextualDynamicContextTestCase::testNodeLinks in drupal/modules/contextual/contextual.test
Tests contextual links on node lists with different permissions.

... See full list

File

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

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