MDL-40176 mock_submit method for testing

processing of data submitted from form.