You are here

function CascadingStylesheetsTestCase::testAddExternal in SimpleTest 7

Tests adding an external stylesheet.

File

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