You are here

function DrupalHTMLIdentifierTestCase::testDrupalHTMLClass in SimpleTest 7

Tests that drupal_html_class() cleans the class name properly.

File

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

Class

DrupalHTMLIdentifierTestCase
Test for cleaning HTML identifiers.

Code

function testDrupalHTMLClass() {

  // Verify Drupal coding standards are enforced.
  $this
    ->assertIdentical(drupal_html_class('CLASS NAME_[Ü]'), 'class-name--ü', t('Enforce Drupal coding standards.'));
}