function ClientsConnectionDrupalTestNodeLoadBase::testForm in Web Service Clients 7.3
Creates the form element for the test.
This gets a form element with the basics in place. If your test needs input parameters, add form elements here.
Parameters
$element: A form element for the test's settings and button.
Return value
The form element with the test's additions.
File
- connections/
clients_drupal/ clients_drupal.testing.inc, line 144 - Contains classes for Client connection testing.
Class
- ClientsConnectionDrupalTestNodeLoadBase
- Abstract base class for testing node load from a Drupal Services connection.
Code
function testForm($element) {
$element['params']['nid'] = array(
'#type' => 'textfield',
'#title' => t('Node ID'),
'#size' => 6,
'#required' => TRUE,
);
return $element;
}