Error message
You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).function DrupalHTMLIdentifierTestCase::testDrupalHTMLClass
Tests that drupal_html_class() cleans the class name properly.
File
-
modules/
simpletest/ tests/ common.test, line 1062
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--ü', 'Enforce Drupal coding standards.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.