function HtmlIdentifierUnitTest::testDrupalHTMLClass

Tests that drupal_html_class() cleans the class name properly.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Common/HtmlIdentifierUnitTest.php, line 47
Definition of Drupal\system\Tests\Common\HtmlIdentifierUnitTest.

Class

HtmlIdentifierUnitTest
Tests cleaning HTML identifiers.

Namespace

Drupal\system\Tests\Common

Code

function testDrupalHTMLClass() {

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