diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-08 06:36:34 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-08 06:36:34 +0000 |
commit | 0dd161277046bab1ec994e8d756c4e99c717421e (patch) | |
tree | 5f33a4f472b6b5e10544924e5bf6cfc0348b8d08 /modules/simpletest/tests/form.test | |
parent | e07b9d35a1f4dcb1678c4d3bb6482daaebea6350 (diff) | |
download | brdo-0dd161277046bab1ec994e8d756c4e99c717421e.tar.gz brdo-0dd161277046bab1ec994e8d756c4e99c717421e.tar.bz2 |
#629794 by yched: Fix Scaling issues with batch API. (with tests)
Diffstat (limited to 'modules/simpletest/tests/form.test')
-rw-r--r-- | modules/simpletest/tests/form.test | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test index 108391777..b7dec7b6a 100644 --- a/modules/simpletest/tests/form.test +++ b/modules/simpletest/tests/form.test @@ -512,45 +512,6 @@ class FormsElementsTableSelectFunctionalTest extends DrupalWebTestCase { } /** - * Test using drupal_form_submit in a batch. - */ -class FormAPITestCase extends DrupalWebTestCase { - - public static function getInfo() { - return array( - 'name' => 'Drupal Execute and Batch API', - 'description' => 'Tests the compatibility of drupal_form_submit and the Batch API', - 'group' => 'Form API', - ); - } - - /** - * Check that we can run drupal_form_submit during a batch. - */ - function testDrupalFormSubmitInBatch() { - - // Our test is going to modify the following variable. - variable_set('form_test_mock_submit', 'initial_state'); - - // This is a page that sets a batch, which calls drupal_form_submit, which - // modifies the variable we set up above. - $this->drupalGet('form_test/drupal_form_submit_batch_api'); - - // If the drupal_form_submit call executed correctly our test variable will be - // set to 'form_submitted'. - $this->assertEqual('form_submitted', variable_get('form_test_mock_submit', 'initial_state'), t('Check drupal_form_submit called submit handlers when running in a batch')); - - // Clean our variable up. - variable_del('form_test_mock_submit'); - } - - function setUp() { - parent::setUp('form_test'); - } - -} - -/** * Test the form storage on a multistep form. * * The tested form puts data into the storage during the initial form |