function DrupalTestCase::assertNoUnwantedRaw in SimpleTest 5
Same name and namespace in other branches
- 6 drupal_test_case.php \DrupalTestCase::assertNoUnwantedRaw()
Will trigger a pass if the raw text is NOT found on the loaded page Fail otherwise.
Parameters
string $raw Raw string to look for: @param string $message Message to display. @return boolean True on pass @access public
File
- ./
drupal_test_case.php, line 421
Class
- DrupalTestCase
- Test case for typical Drupal tests. Extends WebTestCase for comfortable browser usage but also implements all UnitTestCase methods, I wish WebTestCase would do this.
Code
function assertNoUnwantedRaw($raw, $message = "%s") {
return $this
->assertExpectation(new NoTextExpectation($raw), $this->_browser
->getContent(), $message);
}