protected function FusionApplyApiTestCase::assertHookMessage in Fusion Accelerator 7
Same name and namespace in other branches
- 7.2 fusion_apply/tests/fusion_apply.test \FusionApplyApiTestCase::assertHookMessage()
Pass if the message $text was set by one of the CRUD hooks in fusion_apply_test.module, i.e., if the $text is an element of $_SESSION['fusion_apply_test'].
Parameters
$text: Plain text to look for.
$message: Message to display.
$group: The group this message belongs to, defaults to 'Other'.
Return value
TRUE on pass, FALSE on fail.
1 call to FusionApplyApiTestCase::assertHookMessage()
- FusionApplyApiTestCase::testFusionApplySkinHooks in fusion_apply/
tests/ fusion_apply.test - Test hook invocations for CRUD operations on skin configurations.
File
- fusion_apply/
tests/ fusion_apply.test, line 131 - Tests for the Fusion Apply module.
Class
- FusionApplyApiTestCase
- Tests API functionality.
Code
protected function assertHookMessage($text, $message = NULL, $group = 'Other') {
if (!isset($message)) {
$message = $text;
}
return $this
->assertTrue(array_search($text, $_SESSION['fusion_apply_test']) !== FALSE, $message, $group);
}