1.20.x backdrop_web_test_case.php | protected BackdropWebTestCase::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.:
File
- modules/
simpletest/ backdrop_web_test_case.php, line 3240
Class
- BackdropWebTestCase
- Test case for typical Backdrop 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->backdropGetContent(), (string) $raw) === FALSE, $message, $group);
}