You are here

protected function DrupalTestCase::verbose in SimpleTest 6.2

Same name and namespace in other branches
  1. 7.2 drupal_web_test_case.php \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()

3 calls to DrupalTestCase::verbose()
DrupalWebTestCase::drupalGet in ./drupal_web_test_case.php
Retrieves a Drupal path or an absolute path.
DrupalWebTestCase::drupalPost in ./drupal_web_test_case.php
Execute a POST request on a Drupal page. It will be done as usual POST request with SimpleBrowser.
DrupalWebTestCase::verboseEmail in ./drupal_web_test_case.php
Outputs to verbose the most recent $count emails sent.

File

./drupal_web_test_case.php, line 434

Class

DrupalTestCase
Base class for Drupal tests.

Code

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