You are here

public function AdvAggThemeTestCase::setUp in Advanced CSS/JS Aggregation 7.2

Install the advagg module and include needed files.

Overrides AJAXTestCase::setUp

File

tests/advagg.test, line 1419
Tests for advagg.module.

Class

AdvAggThemeTestCase
Unit tests for the Theme API.

Code

public function setUp() {
  parent::setUp(array(
    'advagg',
  ));

  // Include the advagg.module file.
  drupal_load('module', 'advagg');
  module_load_include('inc', 'advagg', 'advagg');
  module_enable(array(
    'theme_test',
  ));
  theme_enable(array(
    'test_theme',
  ));

  // Reset before each test.
  advagg_test_reset_statics();

  // Set settings for testing.
  $GLOBALS['conf']['advagg_convert_absolute_to_relative_path'] = FALSE;
  $GLOBALS['conf']['advagg_convert_absolute_to_protocol_relative_path'] = FALSE;
  $GLOBALS['conf']['advagg_force_https_path'] = FALSE;
}