protected function DrupalTestCase::verbose

7.x drupal_web_test_case.php protected DrupalTestCase::verbose($message)

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()

12 calls to DrupalTestCase::verbose()
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::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.
DrupalRenderTestCase::assertRenderedElement in drupal-7.x/modules/simpletest/tests/common.test
DrupalWebTestCase::assertThemeOutput in drupal-7.x/modules/simpletest/drupal_web_test_case.php
Asserts themed output.

... See full list

File

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

Class

DrupalTestCase
Base class for Drupal tests.

Code

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');
  }
}