protected function XMLSitemapTestHelper::verbose in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.test \XMLSitemapTestHelper::verbose()
Log verbose message in a text file.
This is a copy of DrupalWebTestCase->verbose() but allows a customizable summary message rather than hard-coding 'Verbose message'.
@todo Remove when http://drupal.org/node/800426 is fixed.
Parameters
$verbose_message: The verbose message to be stored.
$message: Message to display.
Overrides DrupalTestCase::verbose
See also
1 call to XMLSitemapTestHelper::verbose()
- XMLSitemapTestHelper::assertNoWatchdogErrors in ./
xmlsitemap.test - Check that there were no watchdog errors or worse.
File
- ./
xmlsitemap.test, line 342 - Unit tests for the xmlsitemap module.
Class
- XMLSitemapTestHelper
- Helper test class with some added functions for testing.
Code
protected function verbose($verbose_message, $message = 'Verbose message') {
if ($id = simpletest_verbose($verbose_message)) {
$url = $GLOBALS['base_url'] . '/' . $this->originalFileDirectory . '/simpletest/verbose/' . get_class($this) . '-' . $id . '.html';
$this
->pass(l($message, $url, array(
'attributes' => array(
'target' => '_blank',
),
)), 'User notice');
}
}