function menu_test_static_variable in SimpleTest 7
Static function for testing hook results.
Parameters
$value: The value to set or NULL to return the current value.
Return value
A text string for comparison to test assertions.
4 calls to menu_test_static_variable()
- MenuIncTestCase::testMenuItemHooks in tests/
menu.test - Test menu maintainance hooks.
- menu_test_menu_link_delete in tests/
menu_test.module - Implement hook_menu_link_delete().
- menu_test_menu_link_insert in tests/
menu_test.module - Implement hook_menu_link_insert().
- menu_test_menu_link_update in tests/
menu_test.module - Implement hook_menu_link_update().
File
- tests/
menu_test.module, line 178 - Dummy module implementing hook menu.
Code
function menu_test_static_variable($value = NULL) {
static $variable;
if (!empty($value)) {
$variable = $value;
}
return $variable;
}