You are here

function CascadingStylesheetsTestCase::testAddExternal in Drupal 7

Tests adding an external stylesheet.

File

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

Class

CascadingStylesheetsTestCase
Test the Drupal CSS system.

Code

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