public function CleanMarkupBlocksTestCase::testGeneratePrefix in Clean Markup 7.2
Test _clean_markup_blocks_generate_prefix().
File
- modules/
clean_markup_blocks/ clean_markup_blocks.test, line 53 - Tests for the Clean Block Markup module.
Class
- CleanMarkupBlocksTestCase
- Tests the Clean Block Markup functionality.
Code
public function testGeneratePrefix() {
$expected_prefix = 'clean_markup_blocks--foo-bar-baz';
$generated_prefix = _clean_markup_blocks_generate_prefix('foo', 'bar-baz');
$this
->assertEqual($expected_prefix, $generated_prefix, 'Prefixes generated properly.');
}