function common_test_drupal_render_invalid_keys

Renders an element with an invalid render array key.

1 string reference to 'common_test_drupal_render_invalid_keys'
common_test_menu in drupal/core/modules/system/tests/modules/common_test/common_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/common_test/common_test.module, line 137
Helper module for the Common tests.

Code

function common_test_drupal_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 drupal_render($element);
}