From f918903428742febe2a690484d13b0ad4fa2310f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 29 Apr 2009 07:18:04 +0000 Subject: - Patch #408024 by brianV et al: rename drupal_execute() to drupal_submit_form(). --- modules/simpletest/tests/form.test | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/simpletest/tests/form.test') diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test index d787a850f..3dff0fa1f 100644 --- a/modules/simpletest/tests/form.test +++ b/modules/simpletest/tests/form.test @@ -346,33 +346,33 @@ class FormsFormCleanIdFunctionalTest extends DrupalWebTestCase { } /** - * Test using drupal_execute in a batch. + * Test using drupal_form_submit in a batch. */ class FormAPITestCase extends DrupalWebTestCase { public static function getInfo() { return array( 'name' => t('Drupal Execute and Batch API'), - 'description' => t('Tests the compatibility of drupal_execute and the Batch API'), + 'description' => t('Tests the compatibility of drupal_form_submit and the Batch API'), 'group' => t('Form API'), ); } /** - * Check that we can run drupal_execute during a batch. + * Check that we can run drupal_form_submit during a batch. */ - function testDrupalExecuteInBatch() { + 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_execute, which + // 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_execute_batch_api'); + $this->drupalGet('form_test/drupal_form_submit_batch_api'); - // If the drupal_execute call executed correctly our test variable will be + // 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_execute called submit handlers when running in a batch')); + $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'); -- cgit v1.2.3