function CascadingStylesheetsTestCase::testAddFile in Drupal 7
Tests adding a file stylesheet.
File
- modules/
simpletest/ tests/ common.test, line 744 - Tests for common.inc functionality.
Class
- CascadingStylesheetsTestCase
- Test the Drupal CSS system.
Code
function testAddFile() {
$path = drupal_get_path('module', 'simpletest') . '/simpletest.css';
$css = drupal_add_css($path);
$this
->assertEqual($css[$path]['data'], $path, 'Adding a CSS file caches it properly.');
}