1.20.x common_test.module | common_test_backdrop_render_invalid_keys() |
Render an element with an invalid render array key.
File
- modules/
simpletest/ tests/ common_test.module, line 142 - Helper module for the Common tests.
Code
function common_test_backdrop_render_invalid_keys() {
define('SIMPLETEST_COLLECT_ERRORS', FALSE);
// Keys that begin with # may contain a value of any type, otherwise they must
// contain arrays.
$key = 'child';
$value = 'This should be an array.';
$element = array(
$key => $value,
);
return backdrop_render($element);
}