1.20.x common.test | CommonHTMLIdentifierTestCase::testBackdropHTMLClass() |
Tests that backdrop_html_class() cleans the class name properly.
File
- modules/
simpletest/ tests/ common.test, line 937 - Tests for common.inc functionality.
Class
- CommonHTMLIdentifierTestCase
- Test for cleaning HTML identifiers.
Code
function testBackdropHTMLClass() {
// Verify Backdrop coding standards are enforced.
$this->assertIdentical(backdrop_html_class('CLASS NAME_[Ü]'), 'class-name--ü', 'Enforce Backdrop coding standards.');
}