You are here

function CDNUnitTestCase::variableSetDefaults in CDN 7.2

Set the default variable values for the CDN module.

1 call to CDNUnitTestCase::variableSetDefaults()
CDNUnitTestCase::setUp in tests/cdn.test
Sets up unit test environment.

File

tests/cdn.test, line 70
Test CDN.

Class

CDNUnitTestCase
@file Test CDN.

Code

function variableSetDefaults() {
  global $conf;
  $this->defaultConfig = array(
    CDN_STATUS_VARIABLE => CDN_ENABLED,
    CDN_MODE_VARIABLE => FALSE,
    CDN_HTTPS_SUPPORT_VARIABLE => FALSE,
    CDN_BASIC_MAPPING_VARIABLE => '',
    CDN_BASIC_MAPPING_HTTPS_VARIABLE => '',
    CDN_BASIC_FARFUTURE_VARIABLE => FALSE,
    CDN_SEO_REDIRECT_VARIABLE => TRUE,
  );
  $conf = array_merge($conf, $this->defaultConfig);
}