protected function SearchApiDbTest::assertText in Search API Database Search 7
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.
Overrides DrupalWebTestCase::assertText
File
- ./
search_api_db.test, line 12
Class
- SearchApiDbTest
- Class for testing index and search capabilities using the Database search module.
Code
protected function assertText($text, $message = '', $group = 'Other') {
return parent::assertText($text, $message ? $message : $text, $group);
}