Install the advagg module and include needed files.

Fichier

tests/advagg.test, line 1419

Classe

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;
}