You are here

function CascadingStylesheetsTestCase::testRenderFile in SimpleTest 7

Tests rendering the stylesheets.

File

tests/common.test, line 507
Tests for common.inc functionality.

Class

CascadingStylesheetsTestCase
Test the Drupal CSS system.

Code

function testRenderFile() {
  $css = drupal_get_path('module', 'simpletest') . '/simpletest.css';
  drupal_add_css($css);
  $styles = drupal_get_css();
  $this
    ->assertTrue(strpos($styles, $css) > 0, t('Rendered CSS includes the added stylesheet.'));
}