You are here

protected function XMLSitemapTestHelper::verbose in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.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 https://www.drupal.org/node/800426 is fixed.

Parameters

string $verbose_message: The verbose message to be stored.

string $message: Message to display.

Overrides DrupalTestCase::verbose

See also

simpletest_verbose()

1 call to XMLSitemapTestHelper::verbose()
XMLSitemapTestHelper::assertNoWatchdogErrors in ./xmlsitemap.test
Check that there were no watchdog errors or worse.

File

./xmlsitemap.test, line 425
Unit tests for the xmlsitemap.

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 = file_create_url($this->originalFileDirectory . '/simpletest/verbose/' . get_class($this) . '-' . $id . '.html');
    $this
      ->error(l($message, $url, array(
      'attributes' => array(
        'target' => '_blank',
      ),
    )), 'User notice');
  }
}