1 common_test.module common_test_backdrop_render_invalid_keys()

Render an element with an invalid render array key.

File

core/modules/simpletest/tests/common_test.module, line 129
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);
}