protected function DrupalWebTestCase::verbose in SimpleTest 7
Log 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
2 calls to DrupalWebTestCase::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.
File
- ./
drupal_web_test_case.php, line 2509
Class
- DrupalWebTestCase
- Test case for typical Drupal tests.
Code
protected function verbose($message) {
if ($id = simpletest_verbose($message)) {
$url = file_create_url($this->originalFileDirectory . '/simpletest/verbose/' . get_class($this) . '-' . $id . '.html');
$this
->error(l(t('Verbose message'), $url, array(
'attributes' => array(
'target' => '_blank',
),
)), 'User notice');
}
}