1.20.x backdrop_web_test_case.php protected BackdropWebTestCase::assertText($text, $message = '', $group = 'Other')

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.:

File

modules/simpletest/backdrop_web_test_case.php, line 3261

Class

BackdropWebTestCase
Test case for typical Backdrop tests.

Code

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