public function HierarchicalSelectInternals::testHsConfigVarNames in Hierarchical Select 7.3
Test sanitized HS Config var names.
File
- tests/
internals.test, line 453 - This file contains the unit tests of the internals.
Class
- HierarchicalSelectInternals
- Tests for the internals of Hierarchical Select.
Code
public function testHsConfigVarNames() {
module_load_include('inc', 'hierarchical_select', 'includes/common');
// Save an empty array.
$name = 'hs-config-var';
hierarchical_select_common_config_set($name, array(
TRUE,
));
// Manually fetch the variable we expect.
$sane_name = 'hs_config_hs_config_var';
$test = variable_get($sane_name, NULL);
$this
->assertNotNull($test, 'HS Config Vars are being sanitized.');
}