function CascadingStylesheetsTestCase::testAddFile

Tests adding a file stylesheet.

File

modules/simpletest/tests/common.test, line 794

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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.