diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-21 21:05:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-21 21:05:22 +0000 |
commit | bf534a219fec45f05535f4db150cf8b5d052e031 (patch) | |
tree | 90dbccae9390cced1bf5a433b6f364645d16af60 /modules/simpletest/tests/form.test | |
parent | 3999984bf8d59b4f95f63db5dba044946322b7d8 (diff) | |
download | brdo-bf534a219fec45f05535f4db150cf8b5d052e031.tar.gz brdo-bf534a219fec45f05535f4db150cf8b5d052e031.tar.bz2 |
#992928 by das-peter, David_Rothstein: Fixed Command line (Drush) install fails on SQLite (#limit_validation_errors doesn't work for programmatic form submissions)
Diffstat (limited to 'modules/simpletest/tests/form.test')
-rw-r--r-- | modules/simpletest/tests/form.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test index 3debf4042..b2b822361 100644 --- a/modules/simpletest/tests/form.test +++ b/modules/simpletest/tests/form.test @@ -1222,6 +1222,15 @@ class FormsProgrammaticTestCase extends DrupalWebTestCase { $this->submitForm(array('textfield' => 'dummy value', 'checkboxes' => array(1 => NULL, 2 => 2)), TRUE); $this->submitForm(array('textfield' => 'dummy value', 'checkboxes' => array(1 => NULL, 2 => NULL)), TRUE); + // Test that a programmatic form submission can correctly click a button + // that limits validation errors based on user input. Since we do not + // submit any values for "textfield" here and the textfield is required, we + // only expect form validation to pass when validation is limited to a + // different field. + $this->submitForm(array('op' => 'Submit with limited validation', 'field_to_validate' => 'all'), FALSE); + $this->submitForm(array('op' => 'Submit with limited validation', 'field_to_validate' => 'textfield'), FALSE); + $this->submitForm(array('op' => 'Submit with limited validation', 'field_to_validate' => 'field_to_validate'), TRUE); + // Restore the current batch status. $batch = $current_batch; } |