function ViewsTestCase::verbose
Overrides DrupalTestCase::verbose
3 calls to ViewsTestCase::verbose()
- ViewsHandlerManyToOneTest::testTermIdExposedGroupedOptions in tests/
handlers/ views_handler_manytoone.test - Tests exposed filter on term ID with grouped options.
- ViewsTestCase::assertIdenticalResultsetHelper in tests/
views_query.test - ViewsTestCase::executeView in tests/
views_query.test - Execute a view with debugging.
File
-
tests/
views_query.test, line 159
Class
Code
protected function verbose($message, $title = NULL) {
// Handle arrays, objects, etc.
if (!is_string($message)) {
$message = "<pre>\n" . print_r($message, TRUE) . "\n</pre>\n";
}
// Optional title to go before the output.
if (!empty($title)) {
$title = '<h2>' . check_plain($title) . "</h2>\n";
}
parent::verbose($title . $message);
}