| 7 common.test | DrupalHTMLIdentifierTestCase::testDrupalHTMLClass() |
Tests that drupal_html_class() cleans the class name properly.
File
- modules/
simpletest/ tests/ common.test, line 847 - Tests for common.inc functionality.
Code
function testDrupalHTMLClass() {
// Verify Drupal coding standards are enforced.
$this->assertIdentical(drupal_html_class('CLASS NAME_[Ü]'), 'class-name--ü', t('Enforce Drupal coding standards.'));
}
Login or register to post comments