protected function DrupalWebTestCase::assertRaw in SimpleTest 6.2
Same name and namespace in other branches
- 7.2 drupal_web_test_case.php \DrupalWebTestCase::assertRaw()
- 7 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.
1 call to DrupalWebTestCase::assertRaw()
- BlockTestCase::testBox in tests/
block.test - Test creating custom block (i.e. box), moving it to a specific region and then deleting it.
File
- ./
drupal_web_test_case.php, line 2403
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
->drupalGetContent(), $raw) !== FALSE, $message, $group);
}