1 common.test CommonCascadingStylesheetsTestCase::testAddFile()

Tests adding a file stylesheet.

File

core/modules/simpletest/tests/common.test, line 738
Tests for common.inc functionality.

Class

CommonCascadingStylesheetsTestCase
Test the Backdrop CSS system.

Code

function testAddFile() {
  $path = backdrop_get_path('module', 'simpletest') . '/css/simpletest.css';
  $css = backdrop_add_css($path);
  $this->assertEqual($css[$path]['data'], $path, 'Adding a CSS file caches it properly.');
}