You are here

public function BlazyTest::testNamespace in Blazy 7

Tests Blazy PSR-4.

@covers \Drupal\blazy\Blazy::getHtmlId

File

tests/Blazy.test, line 133

Class

BlazyTest
Tests the Blazy configuration options and permission controls.

Code

public function testNamespace() {
  $id = 'my_id ';
  $return_id = Blazy::getHtmlId('blazy', $id);
  $this
    ->assertEqual($return_id, 'my-id', t('Html ID changed from my_id to my-id.'));
}