You are here

function ConditionalStylesheetsTestCase::testBaseThemeInfo in Conditional Stylesheets 7.2

Test that stylesheets in base theme .info files are loaded.

File

tests/conditional_styles.test, line 40
Tests for conditional stylesheets.

Class

ConditionalStylesheetsTestCase
Test the Conditional Stylesheets module.

Code

function testBaseThemeInfo() {
  theme_enable(array(
    'conditional_styles_subtheme',
  ));
  variable_set('theme_default', 'conditional_styles_subtheme');
  $this
    ->drupalGet('');

  // Verify base-style.css is in an IE conditional comment.
  $pattern = '/<!--\\[if\\ gte\\ IE\\ 1\\]>.*base\\-style\\.css.*<!\\[endif\\]-->/simx';
  $this
    ->assertPattern($pattern, t('Conditional stylesheet added via base theme .info file was found.'));
}