function ConditionalStylesheetsTestCase::testThemeInfo in Conditional Stylesheets 7.2
Test that stylesheets in theme .info files are loaded.
File
- tests/
conditional_styles.test, line 26 - Tests for conditional stylesheets.
Class
- ConditionalStylesheetsTestCase
- Test the Conditional Stylesheets module.
Code
function testThemeInfo() {
theme_enable(array(
'conditional_styles_subtheme',
));
variable_set('theme_default', 'conditional_styles_subtheme');
$this
->drupalGet('');
// Verify sub-style.css is in an IE conditional comment.
$pattern = '/<!--\\[if\\ gte\\ IE\\ 1\\]>.*sub\\-style\\.css.*<!\\[endif\\]-->/simx';
$this
->assertPattern($pattern, t('Conditional stylesheet added via theme .info file was found.'));
}