function DrupalTestCase::assertNoUnwantedRaw in SimpleTest 6
Same name and namespace in other branches
- 5 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
7 calls to DrupalTestCase::assertNoUnwantedRaw()
- AddTopicToForum::testAddTopicToContainer in tests/
forum_module.test - AddTopicToForum::testAddTopicToForum in tests/
forum_module.test - AddTopicToForum::testMoveTopicToForum in tests/
forum_module.test - AddTopicToForum::testMoveTopicWithCopyToForum in tests/
forum_module.test - CommentModuleTestCase::testAnonymous in tests/
comment_module.test - Test anonymous comment functionality.
File
- ./
drupal_test_case.php, line 545
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);
}