protected function DrupalWebTestCase::assertRaw
7.x drupal_web_test_case.php | protected DrupalWebTestCase::assertRaw($raw, $message = '', $group = 'Other') |
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.
223 calls to DrupalWebTestCase::assertRaw()
- ActionsConfigurationTestCase::testActionConfiguration in drupal-7.x/
modules/ simpletest/ tests/ actions.test - Test the configuration of advanced actions through the administration interface.
- AdminMetaTagTestCase::testMetaTag in drupal-7.x/
modules/ system/ system.test - Verify that the meta tag HTML is generated correctly.
- AggregatorTestCase::createFeed in drupal-7.x/
modules/ aggregator/ aggregator.test - Creates an aggregator feed.
- AggregatorTestCase::deleteFeed in drupal-7.x/
modules/ aggregator/ aggregator.test - Deletes an aggregator feed.
- AggregatorTestCase::removeFeedItems in drupal-7.x/
modules/ aggregator/ aggregator.test - Confirms an item removal from a feed.
File
- drupal-7.x/
modules/ simpletest/ drupal_web_test_case.php, line 2926
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);
}