| 7 common.test | CascadingStylesheetsTestCase::testRenderFile() |
Tests rendering the stylesheets.
File
- modules/
simpletest/ tests/ common.test, line 659 - Tests for common.inc functionality.
Code
function testRenderFile() {
$css = drupal_get_path('module', 'simpletest') . '/simpletest.css';
drupal_add_css($css);
$styles = drupal_get_css();
$this->assertTrue(strpos($styles, $css) > 0, t('Rendered CSS includes the added stylesheet.'));
}
Login or register to post comments