function DrupalTestCase::assertWantedRaw in SimpleTest 6
Same name and namespace in other branches
- 5 drupal_test_case.php \DrupalTestCase::assertWantedRaw()
Will trigger a pass if the raw text is 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
28 calls to DrupalTestCase::assertWantedRaw()
- ActionsContentTest::testActionsContent in tests/
content_actions.test - Various tests, all in one function to assure they happen in the right order.
- 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
File
- ./
drupal_test_case.php, line 529
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 assertWantedRaw($raw, $message = "%s") {
return $this
->assertExpectation(new TextExpectation($raw), $this->_browser
->getContent(), $message);
}