1 common.test CommonHTMLIdentifierTestCase::testBackdropHTMLClass()

Tests that backdrop_html_class() cleans the class name properly.

File

core/modules/simpletest/tests/common.test, line 913
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.');
}