public function FusionApplyApiTestCase::testFusionApplyConfigInfo in Fusion Accelerator 7.2
Same name and namespace in other branches
- 7 fusion_apply/tests/fusion_apply.test \FusionApplyApiTestCase::testFusionApplyConfigInfo()
Tests hook_fusion_apply_config_info().
File
- fusion_apply/
tests/ fusion_apply.test, line 303 - Tests for the Fusion Apply module.
Class
- FusionApplyApiTestCase
- Tests API functionality.
Code
public function testFusionApplyConfigInfo() {
// Verify that fusion_apply_get_config_info() finds all existing and compatible
// hook_fusion_apply_config_info() implementations.
$config = fusion_apply_get_config_info();
// Fusion Apply's own implementation in fusion_apply.fusion.inc should always be found.
$this
->assertTrue(isset($config['rules']), 'hook_fusion_apply_config_info() in $module.fusion.inc found.');
unset($config['rules']);
// Fusion Apply's implementation on behalf of Node module in modules/node.fusion.inc
// should be found.
$this
->assertTrue(isset($config['node']), 'hook_fusion_apply_config_info() in a custom path found.');
unset($config['node']);
// Ensure that fusion_apply_test_incompatible is not contained.
$this
->assertTrue(!isset($config['fusion_apply_test_incompatible']), 'Incompatible hook_fusion_apply_config_info() not found.');
// After asserting all expected, the list of skins should be empty.
$this
->assertTrue(empty($config), 'No unexpected skins found.');
}