You are here

protected function DrupalRemoteTestCase::verbose in SimpleTest 7.2

Temporarily revert the global URL variables so verbose links will print.

Overrides DrupalTestCase::verbose

File

./drupal_web_test_case.php, line 3738
Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.

Class

DrupalRemoteTestCase
Base class used for writing atomic remote tests.

Code

protected function verbose($message) {
  if ($this->remoteUrl) {
    foreach (self::$URL_VARIABLES as $variable) {
      $GLOBALS[$variable] = $this->originalUrls[$variable];
    }
  }
  parent::verbose($message);
  if ($this->remoteUrl) {
    foreach (self::$URL_VARIABLES as $variable) {
      $GLOBALS[$variable] = $this->remoteUrl;
    }
    $GLOBALS['base_secure_url'] = str_replace('http://', 'https://', $GLOBALS['base_secure_url']);
  }
}