public function RulesFormsAPITestCase::testGetElementIds in Rules Forms Support 7
Same name and namespace in other branches
- 7.2 rules_forms.test \RulesFormsAPITestCase::testGetElementIds()
Tests rules_forms_get_element_ids().
File
- ./
rules_forms.test, line 759 - Stores tests related to Rules Form.
Class
- RulesFormsAPITestCase
- Tests Rules Forms actions.
Code
public function testGetElementIds() {
variable_set('rules_forms_form_info', self::$formInfo);
$element_ids = rules_forms_get_element_ids(self::$formId);
$this
->assertEqual($element_ids, array_keys(self::$formInfo[self::$formId]['elements']));
}