You are here

protected static property RulesFormsRulesTestCase::$form in Rules Forms Support 7.2

Same name and namespace in other branches
  1. 7 rules_forms.test \RulesFormsRulesTestCase::form

A test form for passing as an argument in events.

File

./rules_forms.test, line 115
Rules Forms Support tests.

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' => 'test',
  ),
  'body' => array(
    LANGUAGE_NONE => array(
      array(
        'value' => array(
          '#type' => 'textarea',
          '#title' => 'test body',
          '#default_value' => 'test',
        ),
      ),
    ),
  ),
  'fieldset' => array(
    '#type' => 'fieldset',
    '#title' => 'test fieldset',
    'select' => array(
      '#type' => 'select',
      '#title' => 'test select',
      '#options' => array(
        'first' => t('option1'),
        'second' => t('option2'),
      ),
      '#value' => 'test',
      '#default_value' => 'test',
    ),
    'checkboxes' => array(
      '#type' => 'checkboxes',
      '#title' => 'test checkboxes',
      '#options' => array(
        'frist' => t('1option'),
        'sceond' => t('2option'),
      ),
      '#value' => 'test',
      '#default_value' => 'test',
    ),
  ),
);