public function CleanMarkupBlocksTestCase::testDefaults in Clean Markup 7.2
Test that the defaults are correct.
File
- modules/
clean_markup_blocks/ clean_markup_blocks.test, line 34 - Tests for the Clean Block Markup module.
Class
- CleanMarkupBlocksTestCase
- Tests the Clean Block Markup functionality.
Code
public function testDefaults() {
$expected_defaults = array(
'block_wrapper' => 'div',
'additional_block_classes' => '',
'additional_block_attributes' => '',
'enable_inner_div' => FALSE,
'title_wrapper' => 'h2',
'title_hide' => FALSE,
'content_wrapper' => CLEAN_MARKUP_NO_ELEMENT,
'block_html_id_as_class' => TRUE,
);
$current_defaults = variable_get('clean_markup_blocks-defaults', NULL);
$this
->assertEqual($current_defaults, $expected_defaults, 'Current defaults match expected defaults.');
}