CascadingStylesheetsTestCase::testAddFile

  1. drupal
    1. 8
    2. 7
Versions
7 CascadingStylesheetsTestCase::testAddFile()

Tests adding a file stylesheet.

Code

modules/simpletest/tests/common.test, line 606

<?php
function testAddFile() {
  $path = drupal_get_path('module', 'simpletest') . '/simpletest.css';
  $css = drupal_add_css($path);
  $this->assertEqual($css[$path]['data'], $path, t('Adding a CSS file caches it properly.'));
}
?>