You are here

function CascadingStylesheetsTestCase::testAddFile in SimpleTest 7

Tests adding a file stylesheet.

File

tests/common.test, line 481
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, t('Adding a CSS file caches it properly.'));
}