1 common.test CommonCascadingStylesheetsTestCase::testAddExternal()

Tests adding an external stylesheet.

File

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

Class

CommonCascadingStylesheetsTestCase
Test the Backdrop CSS system.

Code

function testAddExternal() {
  $path = 'http://example.com/style.css';
  $css = backdrop_add_css($path, 'external');
  $this->assertEqual($css[$path]['type'], 'external', 'Adding an external CSS file caches it properly.');
}