function CascadingStylesheetsTestCase::testRenderExternal in SimpleTest 7
Tests rendering an external stylesheet.
File
- tests/
common.test, line 517 - Tests for common.inc functionality.
Class
- CascadingStylesheetsTestCase
- Test the Drupal CSS system.
Code
function testRenderExternal() {
$css = 'http://example.com/style.css';
drupal_add_css($css, 'external');
$styles = drupal_get_css();
$this
->assertTrue(strpos($styles, 'href="' . $css) > 0, t('Rendering an external CSS file.'));
}