Install the advagg module and include needed files.

File

tests/advagg.test, line 135

Class

AdvAggCascadingStylesheetsTestCase
Test the Drupal CSS system.

Code

public function setUp() {
    // Enable any modules required for the test. This should be an array of
    // module names.
    parent::setUp(array(
        'advagg',
        'php',
        'locale',
        'common_test',
        'menu_test',
        'color',
    ));
    // Include the advagg.module file.
    drupal_load('module', 'advagg');
    module_load_include('inc', 'advagg', 'advagg');
    // 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;
    $GLOBALS['conf']['advagg_skip_file_create_url_inside_css'] = FALSE;
    // Disable CSS preprocessing.
    $this->preprocessCss = variable_get('preprocess_css', 0);
    variable_set('preprocess_css', 0);
    // Create users.
    $this->bigUser = $this->drupalCreateUser(array(
        'administer themes',
    ));
    // This tests the color module in both Bartik and Garland.
    $this->themes = array(
        'bartik' => array(
            'palette_input' => 'palette[bg]',
            'scheme' => 'slate',
            'scheme_color' => '#3b3b3b',
        ),
    );
    theme_enable(array_keys($this->themes));
    // Reset drupal_add_css() before each test.
    advagg_test_reset_statics();
}