public function RulesFormsAPITestCase::testSaveFormInfo in Rules Forms Support 7
Same name and namespace in other branches
- 7.2 rules_forms.test \RulesFormsAPITestCase::testSaveFormInfo()
Tests rules_forms_save_form_info().
File
- ./
rules_forms.test, line 736 - Stores tests related to Rules Form.
Class
- RulesFormsAPITestCase
- Tests Rules Forms actions.
Code
public function testSaveFormInfo() {
variable_set('rules_forms_form_info', self::$formInfo);
$form_info = self::$formInfo;
$form_info['label'] = 'save test';
rules_forms_save_form_info(self::$formId, $form_info);
$result = variable_get('rules_forms_form_info', array());
$this
->assertTrue($result[self::$formId]['label'] == 'save test');
}