protected static property RulesFormsRulesTestCase::$form in Rules Forms Support 7
Same name and namespace in other branches
- 7.2 rules_forms.test \RulesFormsRulesTestCase::form
A test form for passing as an argument in events.
Type: array
File
- ./
rules_forms.test, line 121 - Stores tests related to Rules Form.
Class
- RulesFormsRulesTestCase
- Base class for testing Rules Forms rules.
Code
protected static $form = array(
'form_id' => array(
'#type' => 'value',
'#value' => 'test_form',
),
'title' => array(
'#type' => 'textfield',
'#title' => 'test title',
'#default_value' => 'tset',
),
'body' => array(
LANGUAGE_NONE => array(
array(
'value' => array(
'#type' => 'textarea',
'#title' => 'test body',
'#default_value' => 'tset',
),
),
),
),
'fieldset' => array(
'#type' => 'fieldset',
'#title' => 'test fieldset',
'select' => array(
'#type' => 'select',
'#title' => 'tset select',
'#options' => array(
'first' => t('option1'),
'second' => t('option2'),
),
'#value' => 'tset',
'#default_value' => 'test',
),
'checkboxes' => array(
'#type' => 'checkboxes',
'#title' => 'test checkboxes',
'#options' => array(
'frist' => t('1option'),
'sceond' => t('2option'),
),
'#value' => 'tset',
'#default_value' => 'test',
),
),
);