You are here

protected function DrupalWebTestCase::drupalGetContent in SimpleTest 6.2

Same name and namespace in other branches
  1. 7.2 drupal_web_test_case.php \DrupalWebTestCase::drupalGetContent()
  2. 7 drupal_web_test_case.php \DrupalWebTestCase::drupalGetContent()

Gets the current raw HTML of requested page.

9 calls to DrupalWebTestCase::drupalGetContent()
DrupalWebTestCase::assertNoPattern in ./drupal_web_test_case.php
Will trigger a pass if the perl regex pattern is not present in raw content.
DrupalWebTestCase::assertNoRaw in ./drupal_web_test_case.php
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.
DrupalWebTestCase::assertPattern in ./drupal_web_test_case.php
Will trigger a pass if the Perl regex pattern is found in the raw content.
DrupalWebTestCase::assertRaw in ./drupal_web_test_case.php
Pass if the raw text IS found on the loaded page, fail otherwise. Raw text refers to the raw HTML that the page generated.
DrupalWebTestCase::assertTextHelper in ./drupal_web_test_case.php
Helper for assertText and assertNoText.

... See full list

File

./drupal_web_test_case.php, line 2303

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function drupalGetContent() {
  return $this->content;
}