protected function DrupalWebTestCase::assertRaw in SimpleTest 7
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalWebTestCase::assertRaw()
- 7.2 drupal_web_test_case.php \DrupalWebTestCase::assertRaw()
Pass if the raw text IS 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.
17 calls to DrupalWebTestCase::assertRaw()
- ActionsConfigurationTestCase::testActionConfiguration in tests/
actions.test - Test the configuration of advanced actions through the administration interface.
- CascadingStylesheetsTestCase::testRenderInlineFullPage in tests/
common.test - Tests rendering inline stylesheets through a full page request.
- DrupalErrorHandlerUnitTest::assertErrorMessage in tests/
error.test - Helper function: assert that the error message is found.
- DrupalErrorHandlerUnitTest::testExceptionHandler in tests/
error.test - Test the exception handler.
- DrupalHTTPRequestTestCase::testDrupalHTTPRequestBasicAuth in tests/
common.test
File
- ./
drupal_web_test_case.php, line 1981
Class
- DrupalWebTestCase
- Test case for typical Drupal tests.
Code
protected function assertRaw($raw, $message = '', $group = 'Other') {
if (!$message) {
$message = t('Raw "@raw" found', array(
'@raw' => $raw,
));
}
return $this
->assert(strpos($this->content, $raw) !== FALSE, $message, $group);
}