function CascadingStylesheetsTest::testAddExternal

Tests adding an external stylesheet.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php, line 78
Definition of Drupal\system\Tests\Common\CascadingStylesheetsTest.

Class

CascadingStylesheetsTest
Tests the Drupal CSS system.

Namespace

Drupal\system\Tests\Common

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.');
}