public function RulesFormsAPITestCase::testEventSubmit in Rules Forms Support 7
Same name and namespace in other branches
- 7.2 rules_forms.test \RulesFormsAPITestCase::testEventSubmit()
Tests rules_forms_event_submit().
File
- ./
rules_forms.test, line 811 - Stores tests related to Rules Form.
Class
- RulesFormsAPITestCase
- Tests Rules Forms actions.
Code
public function testEventSubmit() {
variable_set('rules_forms_form_info', self::$formInfo);
// Ensure that the build information variables are unset for the form.
self::$formState['rules_forms']['form_values'] = array(
'textfield:title' => 'tset',
'textarea:body:und:0:value' => 'tset',
);
rules_forms_event_submit(self::$form, self::$formState);
$this
->assertFalse(isset(self::$formState['rules_forms']), 'Ensure the form build info is unset.');
}