You are here

public function RulesFormsAPITestCase::testGetElementInfo in Rules Forms Support 7

Same name and namespace in other branches
  1. 7.2 rules_forms.test \RulesFormsAPITestCase::testGetElementInfo()

Tests rules_forms_get_element_info().

File

./rules_forms.test, line 750
Stores tests related to Rules Form.

Class

RulesFormsAPITestCase
Tests Rules Forms actions.

Code

public function testGetElementInfo() {
  variable_set('rules_forms_form_info', self::$formInfo);
  $element_info = rules_forms_get_element_info(self::$formId);
  $this
    ->assertEqual($element_info, self::$formInfo[self::$formId]['elements']);
}