You are here

function test_form in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x tests/Drupal/WhiteSpace/ScopeIndentUnitTest.inc \test_form()

A test function.

File

tests/Drupal/WhiteSpace/ScopeIndentUnitTest.inc, line 44

Code

function test_form() {

  /*
   * Here is some long form comment which is discouraged but not forbidden,
   * I think? It goes over multiple lines in this pseudo doc comment style.
   * And even more text now.
   */
  $form['submit_connection'] = [
    '#prefix' => "<br style='clear:both'/>",
    '#name' => 'enter_connection_settings',
    '#type' => 'submit',
    '#value' => t('Enter connection settings'),
    '#weight' => 100,
  ];
}