1 backdrop_web_test_case.php protected BackdropTestCase::verbose($message)

Logs a verbose message in a text file.

The link to the verbose message will be placed in the test results as a passing assertion with the text '[verbose message]'.

Parameters

$message: The verbose message to be stored.

See also

simpletest_verbose()

File

core/modules/simpletest/backdrop_web_test_case.php, line 547

Class

BackdropTestCase
Base class for Backdrop tests.

Code

protected function verbose($message) {
  if ($id = simpletest_verbose($message)) {
    $class_safe = str_replace('\\', '_', get_class($this));
    $url = $this->verboseDirectoryUrl . '/' . $class_safe . '-' . $id . '.html';
    // Not using l() to avoid invoking the theme system, so that unit tests
    // can use verbose() as well.
    $link = '<a href="' . $url . '" target="_blank">' . t('Verbose message') . '</a>';
    $this->error($link, 'User notice');
  }
}