protected function DrupalTestCase::verbose

Logs verbose message in a text file.

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

Parameters

$message: The verbose message to be stored.

See also

simpletest_verbose()

26 calls to DrupalTestCase::verbose()
DateTimeFunctionalTest::testDateFormatStorage in drupal-7.x/modules/system/system.test
Test if the date formats are stored properly.
DateTimeFunctionalTest::testDateFormatStorage in drupal-7.x/modules/system/system.test
Test if the date formats are stored properly.
DrupalHtmlToTextTestCase::assertHtmlToText in drupal-7.x/modules/simpletest/tests/mail.test
Helper function for testing drupal_html_to_text().
DrupalHtmlToTextTestCase::assertHtmlToText in drupal-7.x/modules/simpletest/tests/mail.test
Helper function for testing drupal_html_to_text().
DrupalHtmlToTextTestCase::testDrupalHtmlToTextBlockTagToNewline in drupal-7.x/modules/simpletest/tests/mail.test
Test that text separated by block-level tags in HTML get separated by (at least) a newline in the plaintext version.

... See full list

Archivo

drupal-7.x/modules/simpletest/drupal_web_test_case.php, line 448

Class

DrupalTestCase
Base class for Drupal tests.

Código

protected function verbose($message) {
  if ($id = simpletest_verbose($message)) {
    $class_safe = str_replace('\\', '_', get_class($this));
    $url = file_create_url($this->originalFileDirectory . '/simpletest/verbose/' . $class_safe . '-' . $id . '.html');
    $this->error(l(t('Verbose message'), $url, array('attributes' => array('target' => '_blank'))), 'User notice');
  }
}