You are here

protected function DrupalWebTestCase::assertText in SimpleTest 6.2

Same name and namespace in other branches
  1. 7.2 drupal_web_test_case.php \DrupalWebTestCase::assertText()
  2. 7 drupal_web_test_case.php \DrupalWebTestCase::assertText()

Pass if the text IS found on the text version of the page. The text version is the equivalent of what a user would see when viewing through a web browser. In other words the HTML has been filtered out of the contents.

Parameters

$text: Plain text 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.

2 calls to DrupalWebTestCase::assertText()
BlockTestCase::testBlock in tests/block.test
Test configuring and moving a module-define block to specific regions.
BlockTestCase::testBox in tests/block.test
Test creating custom block (i.e. box), moving it to a specific region and then deleting it.

File

./drupal_web_test_case.php, line 2444

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function assertText($text, $message = '', $group = 'Other') {
  return $this
    ->assertTextHelper($text, $message, $group, FALSE);
}