? simpletest
? simpletest-drupalpost-212282-2.patch
? simpletest.admin.inc
? tests/image_module.test__0.patch
? tests/simpletest-image-test-fixes-212141-2.patch
Index: drupal_test_case.php
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/drupal_test_case.php,v
retrieving revision 1.46
diff -u -p -r1.46 drupal_test_case.php
--- drupal_test_case.php	21 Jan 2008 06:48:49 -0000	1.46
+++ drupal_test_case.php	21 Jan 2008 07:48:38 -0000
@@ -192,7 +192,7 @@ class DrupalTestCase extends WebTestCase
    * @param string $submit
    *   Untranslated value, id or name of the submit button.
    */
-  function drupalPostRequest($path, $edit = array(), $submit) {
+  function drupalPost($path, $edit = array(), $submit) {
     if (isset($path)) {
       $ret = $this->drupalGet($path);
       $this->assertTrue($ret, t(' [browser] GET path "@path"', array('@path' => $path)));
@@ -421,7 +421,7 @@ class DrupalTestCase extends WebTestCase
     }
 
     $edit = array('name' => $user->name, 'pass' => $user->pass_raw);
-    $this->drupalPostRequest('user', $edit, $submit);
+    $this->drupalPost('user', $edit, $submit);
 
     $this->assertText( $user->name, ' [login] found name: ' . $user->name);
     $this->assertNoText(t('The username %name has been blocked.', array('%name' => $user->name)), ' [login] not blocked');
Index: tests/blogapi_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/blogapi_module.test,v
retrieving revision 1.2
diff -u -p -r1.2 blogapi_module.test
--- tests/blogapi_module.test	21 Jan 2008 07:07:36 -0000	1.2
+++ tests/blogapi_module.test	21 Jan 2008 07:48:38 -0000
@@ -112,8 +112,8 @@ class BlogAPIModuleTestCase extends Drup
     // Remove taxonmy vocab.
     $this->drupalLoginUser($admin_user);
     
-    $this->drupalPostRequest('admin/content/taxonomy/edit/vocabulary/'. $vid, array(), 'Delete');
-    $this->drupalPostRequest(NULL, array(), 'Delete');
+    $this->drupalPost('admin/content/taxonomy/edit/vocabulary/'. $vid, array(), 'Delete');
+    $this->drupalPost(NULL, array(), 'Delete');
     $this->assertWantedRaw(t('Deleted vocabulary %vocab.', array('%vocab' => 'simpletest_vocab')), 'Removed vocabulary.');
   }
   
@@ -126,7 +126,7 @@ class BlogAPIModuleTestCase extends Drup
     $edit = array();
     $edit['name'] = $vocab;
     $edit['nodes[blog]'] = TRUE;
-    $this->drupalPostRequest('admin/content/taxonomy/add/vocabulary', $edit, 'Save');
+    $this->drupalPost('admin/content/taxonomy/add/vocabulary', $edit, 'Save');
     $this->assertWantedRaw(t('Created new vocabulary %vocab.', array('%vocab' => $edit['name'])), 'Taxonomy vocabulary added.');
     
     $vocab_arr = taxonomy_get_vocabularies();
@@ -151,7 +151,7 @@ class BlogAPIModuleTestCase extends Drup
   function add_term($vid, $term) {
     $edit = array();
     $edit['name'] = $term;
-    $this->drupalPostRequest('admin/content/taxonomy/'. $vid .'/add/term', $edit, 'Save');
+    $this->drupalPost('admin/content/taxonomy/'. $vid .'/add/term', $edit, 'Save');
     $this->assertWantedRaw(t('Created new term %term.', array('%term' => $edit['name'])), 'Taxonomy term added.');
     
     $tree = taxonomy_get_tree($vid);
Index: tests/book_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/book_module.test,v
retrieving revision 1.2
diff -u -p -r1.2 book_module.test
--- tests/book_module.test	21 Jan 2008 06:39:13 -0000	1.2
+++ tests/book_module.test	21 Jan 2008 07:48:38 -0000
@@ -130,13 +130,13 @@ class BookModuleTestCase extends DrupalT
     $edit['book[bid]'] = $book_nid;
     
     if ($parent !== NULL) {
-      $this->drupalPostRequest('node/add/book', $edit, 'Change book (update list of parents)');
+      $this->drupalPost('node/add/book', $edit, 'Change book (update list of parents)');
       
       $edit['book[plid]'] = $parent;
-      $this->drupalPostRequest(NULL, $edit, 'Save');
+      $this->drupalPost(NULL, $edit, 'Save');
     }
     else
-      $this->drupalPostRequest('node/add/book', $edit, 'Save');
+      $this->drupalPost('node/add/book', $edit, 'Save');
     
     // check to make sure the book node was created
     $node = node_load(array('title' => $edit['title']));
Index: tests/content_actions.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/content_actions.test,v
retrieving revision 1.2
diff -u -p -r1.2 content_actions.test
--- tests/content_actions.test	13 Jan 2008 16:16:13 -0000	1.2
+++ tests/content_actions.test	21 Jan 2008 07:48:38 -0000
@@ -55,7 +55,7 @@ class ActionsContentTest extends  Drupal
 
     // Set action id to "publish post".
     $edit = array('aid' => $hash);
-    $this->drupalPostRequest('admin/build/trigger/node', $edit, 'Assign');
+    $this->drupalPost('admin/build/trigger/node', $edit, 'Assign');
 
     // Create an unpublished node.
     $node = $this->drupalCreateNode(array('status' => 0));
@@ -68,13 +68,13 @@ class ActionsContentTest extends  Drupal
     // Test 2: There should be an error when the action is assigned to the trigger twice.
 
     $edit = array('aid' => $hash);
-    $this->drupalPostRequest('admin/build/trigger/node', $edit, 'Assign');
+    $this->drupalPost('admin/build/trigger/node', $edit, 'Assign');
     $this->assertWantedRaw(t('The action you chose is already assigned to that trigger.'), t('Check to make sure an error occurs when assigning an action to a trigger twice.'));
 
     // Test 3: The action should be able to be unassigned from a trigger.
 
     // This effectively cleans up as well.
-    $this->drupalPostRequest('admin/build/trigger/unassign/nodeapi/presave/'. $hash, array(), 'Unassign');
+    $this->drupalPost('admin/build/trigger/unassign/nodeapi/presave/'. $hash, array(), 'Unassign');
     $this->assertWantedRaw(t('Action %action has been unassigned.', array('%action' => 'Publish post')), t('Check to make sure action can be unassigned from trigger.'));
 
     $assigned = db_result(db_query("SELECT COUNT(*) FROM {trigger_assignments} WHERE aid IN ('". implode("','", $content_actions) ."')"));
Index: tests/forum_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/forum_module.test,v
retrieving revision 1.2
diff -u -p -r1.2 forum_module.test
--- tests/forum_module.test	5 Jan 2008 10:21:57 -0000	1.2
+++ tests/forum_module.test	21 Jan 2008 07:48:38 -0000
@@ -30,7 +30,7 @@ class DrupalForumTestCase extends Drupal
     );
 
     // Double check that the page says it has created the container
-    $this->drupalPostRequest('admin/content/forum/add/container', $edit, 'Save');
+    $this->drupalPost('admin/content/forum/add/container', $edit, 'Save');
     $type = t('forum container');
     $this->assertWantedRaw(t('Created new @type %term.', array('%term' => $title, '@type' => $type)), t('New forum container has been created'));
 
@@ -56,7 +56,7 @@ class DrupalForumTestCase extends Drupal
     );
 
     // Double check that the page says it has created the forum
-    $this->drupalPostRequest('admin/content/forum/add/forum', $edit, 'Save');
+    $this->drupalPost('admin/content/forum/add/forum', $edit, 'Save');
     $type = t('forum');
     $this->assertWantedRaw(t('Created new @type %term.', array('%term' => $title, '@type' => $type)), t('New forum has been created'));
 
@@ -142,7 +142,7 @@ class EditForumTaxonomyTest extends Drup
     );
 
     // Double check that the page says it has edited the vocabulary
-    $this->drupalPostRequest('admin/content/taxonomy/edit/vocabulary/'. $vid, $edit, 'Save');
+    $this->drupalPost('admin/content/taxonomy/edit/vocabulary/'. $vid, $edit, 'Save');
     $this->assertWantedRaw(t('Updated vocabulary %name.', array('%name' => $title)), t('Vocabulary has been edited'));
 
     // Grab the newly edited vocabulary
@@ -191,7 +191,7 @@ class AddTopicToForum extends DrupalForu
     );
 
     // Double check that the page says it has created the topic
-    $this->drupalPostRequest('node/add/forum/'. $forum['tid'], $edit, 'Save');
+    $this->drupalPost('node/add/forum/'. $forum['tid'], $edit, 'Save');
     $type = t('Forum topic');
     $this->assertWantedRaw(t('@type %term has been created.', array('%term' => $title, '@type' => $type)), t('New forum topic has been created'));
     $this->assertNoUnwantedRaw(t('The item %term is only a container for forums.', array('%term' => $forum['name'])), t('No error message shown'));
@@ -234,7 +234,7 @@ class AddTopicToForum extends DrupalForu
     );
 
     // Double check that the page says it hasn't created the topic
-    $this->drupalPostRequest('node/add/forum/'. $container['tid'], $edit, 'Save');
+    $this->drupalPost('node/add/forum/'. $container['tid'], $edit, 'Save');
     $type = t('Forum topic');
     $this->assertNoUnwantedRaw(t('@type %term has been created.', array('%term' => $title, '@type' => $type)), t('No "new forum has been created" message'));
     $this->assertWantedRaw(t('The item %term is only a container for forums.', array('%term' => $container['name'])), t('Error message shown'));
@@ -272,7 +272,7 @@ class AddTopicToForum extends DrupalForu
     );
 
     // Double check that the page says it has created the topic
-    $this->drupalPostRequest('node/add/forum/'. $forum1['tid'], $edit, 'Save');
+    $this->drupalPost('node/add/forum/'. $forum1['tid'], $edit, 'Save');
     $type = t('Forum topic');
     $this->assertWantedRaw(t('@type %term has been created.', array('%term' => $title, '@type' => $type)), t('New forum topic has been created'));
     $this->assertNoUnwantedRaw(t('The item %term is only a container for forums.', array('%term' => $forum1['name'])), t('No error message shown'));
@@ -289,7 +289,7 @@ class AddTopicToForum extends DrupalForu
 
     // Double check that the page says it has updated the topic
     // Also, double check that the new forum name is there and not the old
-    $this->drupalPostRequest('node/'. $new_topic->nid .'/edit', $edit, 'Save');
+    $this->drupalPost('node/'. $new_topic->nid .'/edit', $edit, 'Save');
     $type = t('Forum topic');
     $this->assertWantedRaw(t('@type %term has been updated.', array('%term' => $title, '@type' => $type)), t('Topic has been moved'));
     $this->assertWantedRaw($forum2['name'], t('New forum name is present'));
@@ -329,7 +329,7 @@ class AddTopicToForum extends DrupalForu
     );
 
     // Double check that the page says it has created the topic
-    $this->drupalPostRequest('node/add/forum/'. $forum1['tid'], $edit, 'Save');
+    $this->drupalPost('node/add/forum/'. $forum1['tid'], $edit, 'Save');
     $type = t('Forum topic');
     $this->assertWantedRaw(t('@type %term has been created.', array('%term' => $title, '@type' => $type)), t('New forum topic has been created'));
     $this->assertNoUnwantedRaw(t('The item %term is only a container for forums.', array('%term' => $forum1['name'])), t('No error message shown'));
@@ -346,7 +346,7 @@ class AddTopicToForum extends DrupalForu
 
     // Double check that the page says it has updated the topic
     // Also, double check that the new forum name is there and not the old
-    $this->drupalPostRequest('node/'. $new_topic->nid .'/edit', $edit, 'Save');
+    $this->drupalPost('node/'. $new_topic->nid .'/edit', $edit, 'Save');
     $type = t('Forum topic');
     $this->assertWantedRaw(t('@type %term has been updated.', array('%term' => $title, '@type' => $type)), t('Topic has been moved'));
     $this->assertWantedRaw($forum2['name'], t('New forum name is present'));
Index: tests/image_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/image_module.test,v
retrieving revision 1.13
diff -u -p -r1.13 image_module.test
--- tests/image_module.test	5 Jan 2008 10:21:57 -0000	1.13
+++ tests/image_module.test	21 Jan 2008 07:48:38 -0000
@@ -86,7 +86,7 @@ class ImageModuleTest extends DrupalTest
     // Add image
     unset($edit);
     $edit = array('title' => $title, 'body' => $description, 'files[image]' => $img_path);
-    $this->drupalPostRequest('node/add/image', $edit, 'Submit');
+    $this->drupalPost('node/add/image', $edit, 'Submit');
     $content = $this->_browser->getContent();
     // test message
     $this->assertWantedRaw(t('Your %post has been created.', array('%post' => 'Image')), "Checking message");
@@ -122,7 +122,7 @@ class ImageModuleTest extends DrupalTest
     $img_path = dirname(__FILE__). '/ImageModuleTest.png'; // powininem byc inny obrazek
     unset($edit);
     $edit = array('title' => $title, 'body' => $description, 'files[image]' => $img_path);
-    $this->drupalPostRequest('node/'. $node->nid .'/edit', $edit, 'Submit' );
+    $this->drupalPost('node/'. $node->nid .'/edit', $edit, 'Submit' );
     $content = $this->_browser->getContent();
     $this->drupalGet("node/$node->nid");
     $this->assertWantedText($title, "Checking title : $title");
Index: tests/locale_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/locale_module.test,v
retrieving revision 1.2
diff -u -p -r1.2 locale_module.test
--- tests/locale_module.test	10 Jan 2008 22:33:09 -0000	1.2
+++ tests/locale_module.test	21 Jan 2008 07:48:38 -0000
@@ -52,7 +52,7 @@ class LocaleModuleTest extends DrupalTes
       'prefix' => $prefix,
       'direction' => '0',
     );
-    $this->drupalPostRequest('admin/settings/language/add', $edit, 'Add custom language');
+    $this->drupalPost('admin/settings/language/add', $edit, 'Add custom language');
     // Add string.
     t($name, array(), $langcode);
     // Reset locale cache.
@@ -73,7 +73,7 @@ class LocaleModuleTest extends DrupalTes
       'translation' => 'all',
       'group' => 'all',
     );
-    $this->drupalPostRequest('admin/build/translate/search', $search, 'Search');
+    $this->drupalPost('admin/build/translate/search', $search, 'Search');
     // assertText seems to remove the input field where $name always could be
     // found, so this is not a false assert. See how assertNoText succeeds
     // later.
@@ -89,10 +89,10 @@ class LocaleModuleTest extends DrupalTes
     $edit = array (
       "translations[$langcode]" => $translation,
     );
-    $this->drupalPostRequest(NULL, $edit, 'Save translations');
+    $this->drupalPost(NULL, $edit, 'Save translations');
     $this->assertText(t('The string has been saved.'), 'The string has been saved.');
     $this->assertTrue($name != $translation && t($name, array(), $langcode) == $translation, 't() works');
-    $this->drupalPostRequest('admin/build/translate/search', $search, 'Search');
+    $this->drupalPost('admin/build/translate/search', $search, 'Search');
     // The indicator should not be here.
     $this->assertNoUnwantedRaw($language_indicator, 'String is translated');
     $this->drupalGet('logout');
@@ -101,7 +101,7 @@ class LocaleModuleTest extends DrupalTes
     $this->drupalLoginUser($admin_user);
     $path = 'admin/settings/language/delete/'. $langcode;
     // This a confirm form, we do not need any fields changed.
-    $this->drupalPostRequest($path, array(), 'Delete');
+    $this->drupalPost($path, array(), 'Delete');
     // We need raw here because %locale will add HTML.
     $this->assertWantedRaw(t('The language %locale has been removed.', array('%locale' => $name)), 'The test language has been removed.');
     // Reload to remove $name.
@@ -115,7 +115,7 @@ class LocaleModuleTest extends DrupalTes
     $this->drupalLoginUser($translate_user);
     $this->drupalGet('admin/build/translate/delete/'. $lid);
     $this->assertText(t('The string has been removed.'), 'The string has been removed message.');
-    $this->drupalPostRequest('admin/build/translate/search', $search, 'Search');
+    $this->drupalPost('admin/build/translate/search', $search, 'Search');
     $this->assertNoText($name, 'Search now can not find the name');
   }
 }
Index: tests/menu_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/menu_module.test,v
retrieving revision 1.4
diff -u -p -r1.4 menu_module.test
--- tests/menu_module.test	18 Jan 2008 11:15:21 -0000	1.4
+++ tests/menu_module.test	21 Jan 2008 07:48:39 -0000
@@ -58,7 +58,7 @@ class MenuModuleTestCase extends  Drupal
    * Delete a menu link using the menu module UI.
    */
   function uiDeleteLink($mlid) {
-    $this->drupalPostRequest("admin/build/menu/item/". $mlid ."/delete", array(), "Confirm");
+    $this->drupalPost("admin/build/menu/item/". $mlid ."/delete", array(), "Confirm");
   }
   /**
    * Create a menu link using the menu module UI.
@@ -76,7 +76,7 @@ class MenuModuleTestCase extends  Drupal
       'menu[weight]' => '0',
     );
 
-    $this->drupalPostRequest("admin/build/menu-customize/". $menu_name ."/add", $edit, "Save");
+    $this->drupalPost("admin/build/menu-customize/". $menu_name ."/add", $edit, "Save");
     $out = $this->drupalGet("admin/build/menu-customize/$menu_name");
     $this->assertText($title, 'Link created');
     $mlid = db_result(db_query("SELECT mlid FROM {menu_links} WHERE link_title = '%s'", $title));
@@ -120,7 +120,7 @@ class MenuModuleCustomMenuTest extends M
       'description' => '',
       'title' =>  $title,
     );
-    $this->drupalPostRequest("admin/build/menu/add", $edit, "Save");
+    $this->drupalPost("admin/build/menu/add", $edit, "Save");
 
     $name = 'menu-' .$name;
     $this->drupalGet('admin/build/menu');
@@ -130,7 +130,7 @@ class MenuModuleCustomMenuTest extends M
     $link1 = menu_link_load($mlid1);
     $this->assertTrue((bool)$link1, '1st link created and loaded');
 
-    $this->drupalPostRequest("admin/build/menu-customize/". $name ."/delete", array(), "Delete");
+    $this->drupalPost("admin/build/menu-customize/". $name ."/delete", array(), "Delete");
     $this->assertFalse(menu_load($name), 'Custom menu deleted');
     $this->assertFalse(menu_link_load($mlid1), '1st link deleted with menu');
   }
@@ -170,11 +170,11 @@ class MenuModuleEnable extends DrupalTes
     $hidden = $item['hidden'];
     $edit['menu[enabled]'] = $hidden ? 1 : FALSE;
     $this->assertTrue(TRUE,  $hidden ? 'Disabled item found' : 'Enabled item found');
-    $this->drupalPostRequest('admin/build/menu/item/'. $item['mlid'] .'/edit', $edit, 'Save');
+    $this->drupalPost('admin/build/menu/item/'. $item['mlid'] .'/edit', $edit, 'Save');
     $item = menu_link_load($item['mlid']);
     $this->assertTrue($item['hidden'] != $hidden, $item['hidden'] ? 'Item is now disabled' : 'Item is now enabled');
     $edit['menu[enabled]'] = $hidden ? FALSE : 1;
-    $this->drupalPostRequest('admin/build/menu/item/'. $item['mlid'] .'/edit', $edit, 'Save');
+    $this->drupalPost('admin/build/menu/item/'. $item['mlid'] .'/edit', $edit, 'Save');
     $item = menu_link_load($item['mlid']);
     $this->assertTrue($item['hidden'] == $hidden, $item['hidden'] ? 'Item is disabled again' : 'Item is now enabled again');
   }
@@ -224,13 +224,13 @@ class MenuModuleReset extends DrupalTest
       $item = db_fetch_array(db_query('SELECT * FROM {menu_links} WHERE mlid = %d', $mlid));
       $edit['menu[link_title]'] = $this->randomName(16);
       $path = 'admin/build/menu/item/'. $mlid;
-      $this->drupalPostRequest($path .'/edit', $edit, 'Save');
+      $this->drupalPost($path .'/edit', $edit, 'Save');
       $new_title = db_result(db_query('SELECT link_title FROM {menu_links} WHERE mlid = %d', $mlid));
       $this->assertTrue($new_title == $edit['menu[link_title]'], 'Edit succesful');
       $this->assertFalse($item['link_title'] == $new_title, 'Item changed' );
       $reset_path = $path .'/reset';
       $this->assertWantedRaw($reset_path, 'Reset link found');
-      $this->drupalPostRequest($reset_path, array(), 'Reset');
+      $this->drupalPost($reset_path, array(), 'Reset');
       $reset_title = db_result(db_query('SELECT link_title FROM {menu_links} WHERE mlid = %d', $mlid));
       $this->assertFalse($edit['menu[link_title]'] == $reset_title, 'Item reset');
       $this->assertText(t('The menu item was reset to its default settings.'), 'Reset message');
@@ -272,7 +272,7 @@ class MenuModuleInvalidPath extends Drup
         'menu[link_path]' => $invalid_path,
         'menu[link_title]' => 'title',
       );
-      $this->drupalPostRequest("admin/build/menu-customize/navigation/add", $edit, "Save");
+      $this->drupalPost("admin/build/menu-customize/navigation/add", $edit, "Save");
       $this->assertWantedRaw(t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $invalid_path)), 'Invalid path failed');
     }
   }
Index: tests/modules_system.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/modules_system.test,v
retrieving revision 1.1
diff -u -p -r1.1 modules_system.test
--- tests/modules_system.test	26 Dec 2007 17:11:08 -0000	1.1
+++ tests/modules_system.test	21 Jan 2008 07:48:39 -0000
@@ -59,7 +59,7 @@ class EnableCoreModuleTest extends Drupa
       $edit['status['. $module .']'] = $module;
     }
 
-    $this->drupalPostRequest('admin/build/modules/list/confirm', $edit, 'Save configuration');
+    $this->drupalPost('admin/build/modules/list/confirm', $edit, 'Save configuration');
     $this->assertWantedRaw(t('The configuration options have been saved.'), t('Ensure that the module status has been updated'));
 
     // Now, we check the tables for each module
@@ -120,7 +120,7 @@ class EnableModuleWithoutDependencyTest 
       'status[forum]' => 'forum',
     );
 
-    $this->drupalPostRequest('admin/build/modules/list/confirm', $edit, 'Save configuration');
+    $this->drupalPost('admin/build/modules/list/confirm', $edit, 'Save configuration');
     $this->assertWantedRaw(t('Some required modules must be enabled'), t('Make sure the dependency error is shown'));
 
     $this->assertFalse(module_exists('forum'), t('Check to make sure that the module has not somehow become enabled'));
@@ -199,7 +199,7 @@ class DisableUninstallCoreModuleTest ext
         $edit['status['. $module .']'] = $module;
       }
 
-      $this->drupalPostRequest('admin/build/modules/list/confirm', $edit, 'Save configuration');
+      $this->drupalPost('admin/build/modules/list/confirm', $edit, 'Save configuration');
       $this->assertWantedRaw(t('The configuration options have been saved.'), t('Ensure that the module status has been updated'));
     }
 
@@ -213,7 +213,7 @@ class DisableUninstallCoreModuleTest ext
         $edit['uninstall['. $module .']'] = $module;
     }
 
-    $this->drupalPostRequest('admin/build/modules/uninstall/confirm', $edit, 'Uninstall');
+    $this->drupalPost('admin/build/modules/uninstall/confirm', $edit, 'Uninstall');
     // We need to confirm this by clicking again
     $this->_browser->clickSubmit(t('Uninstall'));
     $this->assertWantedRaw(t('The selected modules have been uninstalled.'), 'Check to ensure that the modules have been removed');
Index: tests/node_revisions.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/node_revisions.test,v
retrieving revision 1.3
diff -u -p -r1.3 node_revisions.test
--- tests/node_revisions.test	13 Jan 2008 16:16:13 -0000	1.3
+++ tests/node_revisions.test	21 Jan 2008 07:48:39 -0000
@@ -79,7 +79,7 @@ class NodeRevisionsTest extends DrupalTe
 
     $test_user = $this->drupalCreateUserRolePerm(array('revert revisions', 'edit any page content'));
     $this->drupalLoginUser($test_user);
-    $this->drupalPostRequest("node/$node->nid/revisions/$vid/revert", array(), 'Revert');
+    $this->drupalPost("node/$node->nid/revisions/$vid/revert", array(), 'Revert');
     $newnode = node_load($node->nid);
     $this->assertTrue(($text == $newnode->body), 'Check to make sure reversions occur properly');
 
@@ -94,7 +94,7 @@ class NodeRevisionsTest extends DrupalTe
 
     $test_user = $this->drupalCreateUserRolePerm(array('delete revisions', 'delete any page content'));
     $this->drupalLoginUser($test_user);
-    $this->drupalPostRequest("node/$node->nid/revisions/$vid/delete", array(), 'Delete');
+    $this->drupalPost("node/$node->nid/revisions/$vid/delete", array(), 'Delete');
     $this->assertTrue(db_result(db_query('SELECT COUNT(vid) FROM {node_revisions} WHERE nid = %d and VID = %d', $node->nid, $vid)) == 0, 'Check to make sure revisions delete properly');    $this->cleanup($node->nid);
 
     $this->cleanup($node->nid);
Index: tests/page_creation.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/page_creation.test,v
retrieving revision 1.15
diff -u -p -r1.15 page_creation.test
--- tests/page_creation.test	21 Jan 2008 06:41:47 -0000	1.15
+++ tests/page_creation.test	21 Jan 2008 07:48:39 -0000
@@ -25,7 +25,7 @@ class PageCreationTest extends  DrupalTe
     $edit = array();
     $edit['title']    = '!SimpleTest test node! ' . $this->randomName(10);
     $edit['body']     = '!SimpleTest test body! ' . $this->randomName(32) . ' ' . $this->randomName(32);
-    $this->drupalPostRequest('node/add/page', $edit, 'Save');
+    $this->drupalPost('node/add/page', $edit, 'Save');
     
     $this->assertWantedRaw(t('!post %title has been created.', array ('!post' => 'Page', '%title' => $edit['title'])), 'Page created');
     
Index: tests/path_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/path_module.test,v
retrieving revision 1.1
diff -u -p -r1.1 path_module.test
--- tests/path_module.test	9 Jan 2008 09:01:58 -0000	1.1
+++ tests/path_module.test	21 Jan 2008 07:48:39 -0000
@@ -38,7 +38,7 @@ class PathModuleTestCase extends DrupalT
     $edit = array();
     $edit['src'] = 'node/' . $node1->nid;
     $edit['dst'] = $this->randomName(8);
-    $this->drupalPostRequest('admin/build/path/add', $edit, 'Create new alias');
+    $this->drupalPost('admin/build/path/add', $edit, 'Create new alias');
     
     // confirm that the alias works
     $this->drupalGet($edit['dst']);
@@ -49,7 +49,7 @@ class PathModuleTestCase extends DrupalT
     
     $previous = $edit['dst'];
     $edit['dst'] = $this->randomName(8);
-    $this->drupalPostRequest('admin/build/path/edit/' . $pid, $edit, 'Update alias');
+    $this->drupalPost('admin/build/path/edit/' . $pid, $edit, 'Update alias');
     
     // confirm that the alias works
     $this->drupalGet($edit['dst']);
@@ -66,13 +66,13 @@ class PathModuleTestCase extends DrupalT
     // set alias to second test node
     $edit['src'] = 'node/' . $node2->nid;
     // leave $edit['dst'] the same
-    $this->drupalPostRequest('admin/build/path/add', $edit, 'Create new alias');
+    $this->drupalPost('admin/build/path/add', $edit, 'Create new alias');
     
     // confirm that the alias didn't make a duplicate
     $this->assertWantedRaw(t('The alias %alias is already in use in this language.', array('%alias' => $edit['dst'])), 'Attempt to move alias was rejected.');
     
     // delete alias
-    $this->drupalPostRequest('admin/build/path/delete/' . $pid, array(), 'Confirm');
+    $this->drupalPost('admin/build/path/delete/' . $pid, array(), 'Confirm');
     
     // confirm that the alias no longer works
     $this->drupalGet($edit['dst']);
@@ -89,7 +89,7 @@ class PathModuleTestCase extends DrupalT
     // create alias
     $edit = array();
     $edit['path'] = $this->randomName(8);
-    $this->drupalPostRequest('node/' . $node1->nid . '/edit', $edit, 'Save');
+    $this->drupalPost('node/' . $node1->nid . '/edit', $edit, 'Save');
     
     // confirm that the alias works
     $this->drupalGet($edit['path']);
@@ -98,7 +98,7 @@ class PathModuleTestCase extends DrupalT
     // change alias
     $previous = $edit['path'];
     $edit['path'] = $this->randomName(8);
-    $this->drupalPostRequest('node/' . $node1->nid . '/edit', $edit, 'Save');
+    $this->drupalPost('node/' . $node1->nid . '/edit', $edit, 'Save');
     
     // confirm that the alias works
     $this->drupalGet($edit['path']);
@@ -114,13 +114,13 @@ class PathModuleTestCase extends DrupalT
     
     // set alias to second test node
     // leave $edit['path'] the same
-    $this->drupalPostRequest('node/' . $node2->nid . '/edit', $edit, 'Save');
+    $this->drupalPost('node/' . $node2->nid . '/edit', $edit, 'Save');
     
     // confirm that the alias didn't make a duplicate
     $this->assertText(t('The path is already in use.'), 'Attempt to moved alias was rejected.');
     
     // delete alias
-    $this->drupalPostRequest('node/' . $node1->nid . '/edit', array('path' => ''), 'Save');
+    $this->drupalPost('node/' . $node1->nid . '/edit', array('path' => ''), 'Save');
     
     // confirm that the alias no longer works
     $this->drupalGet($edit['path']);
@@ -137,7 +137,7 @@ class PathModuleTestCase extends DrupalT
     $edit = array();
     $edit['title'] = '!SimpleTest test node! ' . $this->randomName(10);
     $edit['body'] = '!SimpleTest test body! ' . $this->randomName(32) . ' ' . $this->randomName(32);
-    $this->drupalPostRequest('node/add/page', $edit, 'Save');
+    $this->drupalPost('node/add/page', $edit, 'Save');
     
     // check to make sure the node was created
     $node = node_load(array('title' => $edit['title']));
Index: tests/poll_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/poll_module.test,v
retrieving revision 1.2
diff -u -p -r1.2 poll_module.test
--- tests/poll_module.test	11 Jan 2008 16:48:04 -0000	1.2
+++ tests/poll_module.test	21 Jan 2008 07:48:39 -0000
@@ -12,7 +12,7 @@ class PollTests extends DrupalTestCase {
       'choice[0][chtext]' => 'choice 1',
       'choice[1][chtext]' => 'choice 2',
     );
-    $this->drupalPostRequest('node/add/poll', $edit, 'More choices');
+    $this->drupalPost('node/add/poll', $edit, 'More choices');
     $edit = array(
       'title' => $title,
       'choice[0][chtext]' => 'choice 1',
@@ -24,14 +24,14 @@ class PollTests extends DrupalTestCase {
       'choice[6][chtext]' => 'choice 7',
     );
     if ($standalone) {
-      $this->drupalPostRequest(NULL, $edit, 'Preview');
+      $this->drupalPost(NULL, $edit, 'Preview');
       for ($i = 0; $i <= 6; $i++) {
         $bar = theme('poll_bar', $edit['choice['. $i .'][chtext]'], NULL, 0, FALSE, FALSE);
         $this->assertTrue($bar, "bar $i is themed");
         $this->assertWantedRaw($bar, "bar $i found in preview");
       }
     }
-    $this->drupalPostRequest(NULL, $edit, 'Save');
+    $this->drupalPost(NULL, $edit, 'Save');
     $this->nid = preg_replace('/\D/', '', $this->getUrl());
     $this->assertWantedRaw(t('@type %title has been created.', array('@type' => node_get_types('name', 'poll'), '%title' => $title)), 'Poll has been created.');
   }
@@ -86,7 +86,7 @@ class PollVoteTest extends PollTests {
     $edit = array (
       'choice' => '1',
     );
-    $this->drupalPostRequest('node/'. $this->nid, $edit, 'Vote');
+    $this->drupalPost('node/'. $this->nid, $edit, 'Vote');
     $this->assertText('Your vote was recorded.', 'Your vote was recorded.');
     $this->drupalGet("node/$this->nid/votes");
     $this->assertText(t('This table lists all the recorded votes for this poll. If anonymous users are allowed to vote, they will be identified by the IP address of the computer they used when they voted.'), 'Vote table text.');
Index: tests/profile_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/profile_module.test,v
retrieving revision 1.12
diff -u -p -r1.12 profile_module.test
--- tests/profile_module.test	8 Sep 2007 23:02:40 -0000	1.12
+++ tests/profile_module.test	21 Jan 2008 07:48:40 -0000
@@ -56,7 +56,7 @@ class ProfileModuleTestSingle extends Dr
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in');
+    $this->drupalPost('user', $edit, 'Log in');
 
     //wartosci
     $my_category = 'Simpletest';
@@ -69,7 +69,7 @@ class ProfileModuleTestSingle extends Dr
                   'name' => $form_name,
                   'explanation' => $explanation,
                   );
-    $this->drupalPostRequest('admin/user/profile/add/textfield', $edit, 'Save field',0);
+    $this->drupalPost('admin/user/profile/add/textfield', $edit, 'Save field',0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $single_field = array('title' => $title, 'form_name' => $form_name, 'explanation' => $explanation);
 
@@ -88,7 +88,7 @@ class ProfileModuleTestSingle extends Dr
     $edit = array();
     $checking = array();
     $edit[$form_name] = $this->randomName(20);
-    $this->drupalPostRequest("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
+    $this->drupalPost("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
     $this->_browser->get(url("user/". $user->uid));
 
     // checking profile page
@@ -96,11 +96,11 @@ class ProfileModuleTestSingle extends Dr
     $this->assertWantedText($title, "Checking $title");
     // update field
     $new_title = $this->randomName(20);
-    $this->drupalPostRequest("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertWantedText($new_title, "Checking updated field");
     // deleting field
-    $this->drupalPostRequest("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
+    $this->drupalPost("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertNoUnwantedText($new_title, "Checking deleted field $title");
 
@@ -174,7 +174,7 @@ class ProfileModuleTestTextarea extends 
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in',0 );
+    $this->drupalPost('user', $edit, 'Log in',0 );
 
     //wartosci
     $my_category = 'Simpletest';
@@ -183,7 +183,7 @@ class ProfileModuleTestTextarea extends 
     $form_name = 'profile_' . $title;
     $explanation = $this->randomName(50);
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'explanation' => $explanation);
-    $this->drupalPostRequest("admin/user/profile/add/textarea", $edit, 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/add/textarea", $edit, 'Save field' , 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $single_field = array('title' => $title, 'form_name' => $form_name, 'explanation' => $explanation);
 
@@ -202,7 +202,7 @@ class ProfileModuleTestTextarea extends 
     $edit = array();
     $checking = array();
     $edit[$form_name] = $this->randomName(20);
-    $this->drupalPostRequest("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
+    $this->drupalPost("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
     $this->_browser->get(url("user/". $user->uid));
 
     // checking profile page
@@ -210,11 +210,11 @@ class ProfileModuleTestTextarea extends 
     $this->assertWantedText($title, "Checking $title");
     // update field
     $new_title = $this->randomName(20);
-    $this->drupalPostRequest("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertWantedText($new_title, "Checking updated field");
     // deleting field
-    $this->drupalPostRequest("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
+    $this->drupalPost("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertNoUnwantedText($new_title, "Checking deleted field $title");
 
@@ -288,7 +288,7 @@ class ProfileModuleTestFreelist extends 
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in',0 );
+    $this->drupalPost('user', $edit, 'Log in',0 );
 
     //wartosci
     $my_category = 'Simpletest';
@@ -297,7 +297,7 @@ class ProfileModuleTestFreelist extends 
     $form_name = 'profile_' . $title;
     $explanation = $this->randomName(50);
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'explanation' => $explanation);
-    $this->drupalPostRequest("admin/user/profile/add/list", $edit, 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/add/list", $edit, 'Save field' , 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $single_field = array('title' => $title, 'form_name' => $form_name, 'explanation' => $explanation);
 
@@ -316,7 +316,7 @@ class ProfileModuleTestFreelist extends 
     $edit = array();
     $checking = array();
     $edit[$form_name] = $this->randomName(20);
-    $this->drupalPostRequest("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
+    $this->drupalPost("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
     $this->_browser->get(url("user/". $user->uid));
 
     // checking profile page
@@ -324,11 +324,11 @@ class ProfileModuleTestFreelist extends 
     $this->assertWantedText($title, "Checking $title");
     // update field
     $new_title = $this->randomName(20);
-    $this->drupalPostRequest("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertWantedText($new_title, "Checking updated field");
     // deleting field
-    $this->drupalPostRequest("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
+    $this->drupalPost("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertNoUnwantedText($new_title, "Checking deleted field $title");
 
@@ -403,7 +403,7 @@ class ProfileModuleTestCheckbox extends 
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in',0 );
+    $this->drupalPost('user', $edit, 'Log in',0 );
 
     //wartosci
     $my_category = 'Simpletest';
@@ -412,7 +412,7 @@ class ProfileModuleTestCheckbox extends 
     $form_name = 'profile_' . $title;
     $explanation = $this->randomName(50);
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'explanation' => $explanation);
-    $this->drupalPostRequest("admin/user/profile/add/checkbox", $edit, 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/add/checkbox", $edit, 'Save field' , 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $single_field = array('title' => $title, 'form_name' => $form_name, 'explanation' => $explanation);
 
@@ -431,18 +431,18 @@ class ProfileModuleTestCheckbox extends 
     $edit = array();
     $checking = array();
     $edit[$form_name] = 1;
-    $this->drupalPostRequest("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
+    $this->drupalPost("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
     $this->_browser->get(url("user/". $user->uid));
     // checking profile page
     $this->assertWantedText($title, "Checking checkbox");
     $this->assertWantedText($title, "Checking $title");
     // update field
     $new_title = $this->randomName(10);
-    $this->drupalPostRequest("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertWantedText($new_title, "Checking updated field");
     // deleting field
-    $this->drupalPostRequest("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
+    $this->drupalPost("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertNoUnwantedText($new_title, "Checking deleted field $title");
 
@@ -516,7 +516,7 @@ class ProfileModuleTestUrl extends Drupa
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in',0 );
+    $this->drupalPost('user', $edit, 'Log in',0 );
 
     //wartosci
     $my_category = 'Simpletest';
@@ -525,7 +525,7 @@ class ProfileModuleTestUrl extends Drupa
     $form_name = 'profile_' . $title;
     $explanation = $this->randomName(50);
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'explanation' => $explanation);
-    $this->drupalPostRequest("admin/user/profile/add/url", $edit, 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/add/url", $edit, 'Save field' , 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $single_field = array('title' => $title, 'form_name' => $form_name, 'explanation' => $explanation);
 
@@ -544,7 +544,7 @@ class ProfileModuleTestUrl extends Drupa
     $edit = array();
     $checking = array();
     $edit[$form_name] = 'http://www.' . $this->randomName(10). '.org';
-    $this->drupalPostRequest("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
+    $this->drupalPost("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
     $this->_browser->get(url("user/". $user->uid));
 
     // checking profile page
@@ -552,11 +552,11 @@ class ProfileModuleTestUrl extends Drupa
     $this->assertWantedText($title, "Checking $title");
     // update field
     $new_title = $this->randomName(20);
-    $this->drupalPostRequest("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertWantedText($new_title, "Checking updated field");
     // deleting field
-    $this->drupalPostRequest("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
+    $this->drupalPost("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertNoUnwantedText($new_title, "Checking deleted field $title");
 
@@ -630,7 +630,7 @@ class ProfileModuleTestSelection extends
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in',0 );
+    $this->drupalPost('user', $edit, 'Log in',0 );
 
     //wartosci
     $my_category = 'Simpletest';
@@ -642,7 +642,7 @@ class ProfileModuleTestSelection extends
     for($i = 0; $i < 3; $i++)
       $options .= $this->randomName(8) . "\n";
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'explanation' => $explanation, 'options' => $options);
-    $this->drupalPostRequest("admin/user/profile/add/selection", $edit, 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/add/selection", $edit, 'Save field' , 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $single_field = array('title' => $title, 'form_name' => $form_name, 'explanation' => $explanation);
 
@@ -667,7 +667,7 @@ class ProfileModuleTestSelection extends
     $element = rand(0,2);
     $key = $form_name;
     $edit[$key] = rtrim($op_tab[$element]);
-    $this->drupalPostRequest("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
+    $this->drupalPost("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
     $this->_browser->get(url("user/". $user->uid));
 
     // checking profile page
@@ -675,11 +675,11 @@ class ProfileModuleTestSelection extends
     $this->assertWantedText($title, "Checking $title");
     // update field
     $new_title = $this->randomName(20);
-    $this->drupalPostRequest("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertWantedText($new_title, "Checking updated field");
     // deleting field
-    $this->drupalPostRequest("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
+    $this->drupalPost("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertNoUnwantedText($new_title, "Checking deleted field $title");
 
@@ -755,7 +755,7 @@ class ProfileModuleTestDate extends Drup
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in',0 );
+    $this->drupalPost('user', $edit, 'Log in',0 );
 
     //wartosci
     $my_category = 'Simpletest';
@@ -767,7 +767,7 @@ class ProfileModuleTestDate extends Drup
     for($i = 0; $i < 3; $i++)
       $options .= $this->randomName(8) . "\n";*/
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'explanation' => $explanation);
-    $this->drupalPostRequest("admin/user/profile/add/date", $edit, 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/add/date", $edit, 'Save field' , 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $single_field = array('title' => $title, 'form_name' => $form_name, 'explanation' => $explanation);
 
@@ -796,7 +796,7 @@ class ProfileModuleTestDate extends Drup
                        'M' => map_month(1),
                        'Y' => 1983);
     $data = strtr($format, $replace);
-    $this->drupalPostRequest("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
+    $this->drupalPost("user/". $user->uid. "/edit/$my_category", $edit, 'Save' , 0);
     $this->_browser->get(url("user/". $user->uid));
 
     // checking profile page
@@ -804,11 +804,11 @@ class ProfileModuleTestDate extends Drup
     $this->assertWantedText($title, "Checking $title");
     // update field
     $new_title = $this->randomName(20);
-    $this->drupalPostRequest("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
+    $this->drupalPost("admin/user/profile/edit/$fid", array('title' => $new_title), 'Save field' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertWantedText($new_title, "Checking updated field");
     // deleting field
-    $this->drupalPostRequest("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
+    $this->drupalPost("admin/user/profile/delete/$fid", array(), 'Delete' , 0);
     $this->_browser->get(url("admin/user/profile"));
     $this->assertNoUnwantedText($new_title, "Checking deleted field $title");
 
@@ -885,7 +885,7 @@ class ProfileModuleTest2 extends DrupalT
     $user = user_save('', array('name' => $name, 'pass' => $pass, 'init' => $mail, 'mail' => $mail, 'roles' => $edit['roles'], 'status' => 1));
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in', 0);
+    $this->drupalPost('user', $edit, 'Log in', 0);
     //wartosci
     $my_category = $this->randomName(10);
     //single line textfield
@@ -894,7 +894,7 @@ class ProfileModuleTest2 extends DrupalT
     // weight
     $weight = 3;
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'weight' => $weight, 'required' => 1);
-    $this->drupalPostRequest("admin/user/profile/add/textfield", $edit, 'Save field', 0);
+    $this->drupalPost("admin/user/profile/add/textfield", $edit, 'Save field', 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $sfield1 = array('fid'=> $fid, 'title' => $title);
     //second one line textfield
@@ -903,7 +903,7 @@ class ProfileModuleTest2 extends DrupalT
     // weight
     $weight = -2;
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'weight' => $weight, 'register' => 1, 'required' => 1);
-    $this->drupalPostRequest("admin/user/profile/add/textfield", $edit, 'Save field', 0);
+    $this->drupalPost("admin/user/profile/add/textfield", $edit, 'Save field', 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $sfield2 = array('fid'=> $fid, 'title' => $title);
     // checking
@@ -926,12 +926,12 @@ class ProfileModuleTest2 extends DrupalT
     $fmail = "$fname@drupaltest.example.com";
     $edit = array('name' => $fname,
                'mail' => $fmail);
-    $this->drupalPostRequest('user/register', $edit, 'Create new account', 0);
+    $this->drupalPost('user/register', $edit, 'Create new account', 0);
     //$key = t('The field %field is required.', array('%field' => $title));
     //$this->assertWantedText($key, 'Checking error message');
     //log in
     $edit = array('name' => $name, 'pass' => $pass);
-    $this->drupalPostRequest('user', $edit, 'Log in', 0);
+    $this->drupalPost('user', $edit, 'Log in', 0);
     // TITLE
     //selection
     $title =  $this->randomName(10);
@@ -941,7 +941,7 @@ class ProfileModuleTest2 extends DrupalT
     for($i = 0; $i < 3; $i++)
       $options .= $this->randomName(8) . "\n";
     $edit = array('category' => $my_category, 'title' => $title, 'name' => $form_name, 'page' => $page_title, 'options' => $options);
-    $this->drupalPostRequest("admin/user/profile/add/selection", $edit, 'Save field', 0);
+    $this->drupalPost("admin/user/profile/add/selection", $edit, 'Save field', 0);
     $fid = db_result(db_query('SELECT fid FROM {profile_fields} WHERE title = "%s"', $title));
     $element = rand(0,2);
     $op_tab = explode("\n", $options,3);
@@ -955,7 +955,7 @@ class ProfileModuleTest2 extends DrupalT
     $delete_fields[] = $fid;
 
     foreach($delete_fields as $delfid) {
-      $this->drupalPostRequest("admin/user/profile/delete/".$delfid, array(), 'Delete', 0 );
+      $this->drupalPost("admin/user/profile/delete/".$delfid, array(), 'Delete', 0 );
     }
     // delete test user and roles
     if ($user->uid > 0) {
Index: tests/story_edit.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/story_edit.test,v
retrieving revision 1.1
diff -u -p -r1.1 story_edit.test
--- tests/story_edit.test	3 Dec 2007 20:32:06 -0000	1.1
+++ tests/story_edit.test	21 Jan 2008 07:48:40 -0000
@@ -26,7 +26,7 @@ class StoryEditTest extends DrupalTestCa
 	);
 	
     //Create the page to edit
-    $this->drupalPostRequest('node/add/story', $edit, 'Save');
+    $this->drupalPost('node/add/story', $edit, 'Save');
 
     $node = node_load(array('title' => $edit['title']));
     $this->assertNotNull($node, 'Node found in database');
@@ -49,7 +49,7 @@ class StoryEditTest extends DrupalTestCa
 
 	
     //edit the content of the page
-    $this->drupalPostRequest("node/$node->nid/edit", $edit, 'Save');
+    $this->drupalPost("node/$node->nid/edit", $edit, 'Save');
 
     $this->assertWantedText(t($edit['title']), 'Hello, the random title');
     $this->assertWantedText(t($edit['body']), 'test is over, the body\'s still there');
Index: tests/story_preview.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/story_preview.test,v
retrieving revision 1.1
diff -u -p -r1.1 story_preview.test
--- tests/story_preview.test	3 Dec 2007 20:32:06 -0000	1.1
+++ tests/story_preview.test	21 Jan 2008 07:48:40 -0000
@@ -25,7 +25,7 @@ class StoryPreviewTest extends DrupalTes
       'title'=>'!SimpleTest! title' . $this->randomName(20),
       'body'=>'!SimpleTest! body' . $this->randomName(200),
     );
-    $this->drupalPostRequest('node/add/story', $edit, 'Preview');
+    $this->drupalPost('node/add/story', $edit, 'Preview');
 
     $this->assertWantedText(t('Preview'), 'Preview text is here');
     $this->assertWantedText(t($edit['title']), 'Hello, the random title');
Index: tests/taxonomy.module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/taxonomy.module.test,v
retrieving revision 1.12
diff -u -p -r1.12 taxonomy.module.test
--- tests/taxonomy.module.test	5 Jan 2008 10:21:57 -0000	1.12
+++ tests/taxonomy.module.test	21 Jan 2008 07:48:41 -0000
@@ -297,10 +297,10 @@ class TaxonomyTestNodeApi extends Drupal
     $body = $this->randomName(100);
     $edit = array('title' => $title, 'body' => $body, 'taxonomy-' . $vid => $parent);
     
-    // multiple slect box was failing through drupalPostRequest. Use raw POST instead
+    // multiple slect box was failing through drupalPost. Use raw POST instead
     // Failing because they were being sent/handled wrong (earnest.berry@gmail.com <Souvent22>)
     $action = url('node/add/story', array('absolute' => TRUE));
-    $this->drupalPostRequest($action, $edit, 'Save');
+    $this->drupalPost($action, $edit, 'Save');
     $content = $this->drupalGetContent();
     $patternArray['body text'] = $body;
     $patternArray['title'] = $title;
@@ -341,7 +341,7 @@ class TaxonomyTestNodeApi extends Drupal
 
     $edit = array('title' => $title, 'body' => $body, 'taxonomy-' . $vid => $parent);
     
-    $this->drupalPostRequest('node/'. $node->nid .'/edit', $edit, 'Save');
+    $this->drupalPost('node/'. $node->nid .'/edit', $edit, 'Save');
     
     // TODO Do a MUCH better check here of the information msg
     $patternArray['information message'] = 'been updated';
@@ -356,7 +356,7 @@ class TaxonomyTestNodeApi extends Drupal
     }
 
     // delete node through browser
-    $this->drupalPostRequest('node/'. $node->nid .'/delete', array(), 'Delete' );
+    $this->drupalPost('node/'. $node->nid .'/delete', array(), 'Delete' );
     // checking after delete
     $this->_browser->get(url("node/".$node->nid));
     $this->assertNoUnwantedText($termname, "Checking if node exists");
Index: tests/translation_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/translation_module.test,v
retrieving revision 1.1
diff -u -p -r1.1 translation_module.test
--- tests/translation_module.test	17 Jan 2008 22:18:47 -0000	1.1
+++ tests/translation_module.test	21 Jan 2008 07:48:41 -0000
@@ -36,7 +36,7 @@ class TranslationModuleTestCase extends 
     $this->add_language('es');
     
     // Set story content type to use multilingual support with translation.
-    $this->drupalPostRequest('admin/content/types/story', array('language_content_type' => "2"), 'Save content type');
+    $this->drupalPost('admin/content/types/story', array('language_content_type' => "2"), 'Save content type');
     $this->assertWantedRaw(t('The content type %type has been updated.', array('%type' => 'Story')), 'Story content type has been updated.');
 
     $this->drupalGet('logout');
@@ -54,7 +54,7 @@ class TranslationModuleTestCase extends 
     $edit = array();
     $edit['body'] = 'Node body. Additional Text.';
     $edit['translation[retranslate]'] = TRUE;
-    $this->drupalPostRequest('node/'. $node->nid .'/edit', $edit, 'Save');
+    $this->drupalPost('node/'. $node->nid .'/edit', $edit, 'Save');
     $this->assertWantedRaw(t('Story %title has been updated.', array('%title' => $node_title)), 'Original node updated.');
     
     // Check to make sure that interface shows translation as outdated
@@ -65,7 +65,7 @@ class TranslationModuleTestCase extends 
     $edit = array();
     $edit['body'] = 'Nodo cuerpo. Texto adicional.';
     $edit['translation[status]'] = FALSE;
-    $this->drupalPostRequest('node/'. $node_trans->nid .'/edit', $edit, 'Save');
+    $this->drupalPost('node/'. $node_trans->nid .'/edit', $edit, 'Save');
     $this->assertWantedRaw(t('Story %title has been updated.', array('%title' => $node_trans_title)), 'Translated node updated.');
   }
   
@@ -83,7 +83,7 @@ class TranslationModuleTestCase extends 
       // Doesn't have language installed so add it.
       $edit = array();
       $edit['langcode'] = $language_code;
-      $this->drupalPostRequest('admin/settings/language/add', $edit, 'Add language');
+      $this->drupalPost('admin/settings/language/add', $edit, 'Add language');
       
       $languages = language_list('language', TRUE); // make sure not using cached version
       $this->assertTrue(array_key_exists($language_code, $languages), 'Language was installed successfully.');
@@ -95,7 +95,7 @@ class TranslationModuleTestCase extends 
     else {
       // Ensure that it is enabled.
       $this->assertTrue(true, 'Language ['. $language_code .'] already installed.');
-      $this->drupalPostRequest(NULL, array('enabled['. $language_code .']' => TRUE), 'Save configuration');
+      $this->drupalPost(NULL, array('enabled['. $language_code .']' => TRUE), 'Save configuration');
       
       $this->assertWantedRaw(t('Configuration saved.'), 'Language successfully enabled.');
     }
@@ -115,7 +115,7 @@ class TranslationModuleTestCase extends 
     $edit['title'] = $title;
     $edit['body'] = $body;
     $edit['language'] = $language;
-    $this->drupalPostRequest('node/add/story', $edit, 'Save');
+    $this->drupalPost('node/add/story', $edit, 'Save');
     
     $this->assertWantedRaw(t('Story %title has been created.', array('%title' => $edit['title'])), 'Story created.');
     
@@ -141,7 +141,7 @@ class TranslationModuleTestCase extends 
     $edit['title'] = $title;
     $edit['body'] = $body;
     
-    $this->drupalPostRequest(NULL, $edit, 'Save');
+    $this->drupalPost(NULL, $edit, 'Save');
     
     $this->assertWantedRaw(t('Story %title has been created.', array('%title' => $edit['title'])), 'Translation created.');
     
Index: tests/upload_tests.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/upload_tests.test,v
retrieving revision 1.12
diff -u -p -r1.12 upload_tests.test
--- tests/upload_tests.test	11 Jan 2008 16:44:38 -0000	1.12
+++ tests/upload_tests.test	21 Jan 2008 07:48:41 -0000
@@ -45,7 +45,7 @@ class UploadPictureTests extends DrupalT
     // not a image
     $img_path = realpath(drupal_get_path('module', 'simpletest'). "/tests/upload_tests.test");
     $edit = array('files[picture_upload]' => $img_path);
-    $this->drupalPostRequest('user/'.$user->uid.'/edit', $edit, 'Save' );
+    $this->drupalPost('user/'.$user->uid.'/edit', $edit, 'Save' );
     $this->assertWantedRaw(t('The selected file %file could not be uploaded. Only JPEG, PNG and GIF images are allowed.', array('%file' => 'upload_tests.test')), 'The uploaded file was not an image.');
     variable_set('user_pictures', $old_pic_set);
 
@@ -91,7 +91,7 @@ class UploadPictureTests extends DrupalT
 
         // TEST:
         $edit = array('picture' => $img_path);
-        $this->drupalPostRequest('user/'.$user->uid.'/edit', $edit, 'Save' );
+        $this->drupalPost('user/'.$user->uid.'/edit', $edit, 'Save' );
         $file_dir = variable_get('file_directory_path', 'files');
         $picture_dir = variable_get('user_picture_path', 'pictures');
         $pic_path = $file_dir .'/'.$picture_dir .'/picture-'.$user->uid.'.jpg';
@@ -148,7 +148,7 @@ class UploadPictureTests extends DrupalT
 
         // TEST:
         $edit = array('picture' => $img_path);
-        $this->drupalPostRequest('user/'.$user->uid.'/edit', $edit, 'Save' );
+        $this->drupalPost('user/'.$user->uid.'/edit', $edit, 'Save' );
         $file_dir = variable_get('file_directory_path', 'files');
         $picture_dir = variable_get('user_picture_path', 'pictures');
         $pic_path = $file_dir .'/'.$picture_dir .'/picture-'.$user->uid.'.jpg';
@@ -203,7 +203,7 @@ class UploadPictureTests extends DrupalT
 
         // TEST:
         $edit = array('picture' => $img_path);
-        $this->drupalPostRequest('user/'.$user->uid.'/edit', $edit, 'Save' );
+        $this->drupalPost('user/'.$user->uid.'/edit', $edit, 'Save' );
         $text = t('The uploaded image is too large; the maximum dimensions are %dimensions pixels.', array('%dimensions' => variable_get('user_picture_dimensions', '85x85')));
         $this->assertWantedText($text, 'Checking response on invalid image (dimensions).');
 
@@ -252,7 +252,7 @@ class UploadPictureTests extends DrupalT
         variable_set('user_picture_file_size', $test_size);
 
         $edit = array('picture' => $img_path);
-        $this->drupalPostRequest('user/'.$user->uid.'/edit', $edit, 'Save' );
+        $this->drupalPost('user/'.$user->uid.'/edit', $edit, 'Save' );
         $text = t('The uploaded image is too large; the maximum file size is %size kB.', array('%size' => variable_get('user_picture_file_size', '30')));
         $this->assertWantedText($text, 'Checking response on invalid image size.');
 
@@ -303,7 +303,7 @@ class UploadPictureTests extends DrupalT
 
       // TEST:
       $edit = array('files[picture_upload]' => $img_path);
-      $this->drupalPostRequest('user/'.$user->uid.'/edit', $edit, 'Save' );
+      $this->drupalPost('user/'.$user->uid.'/edit', $edit, 'Save' );
       $picture_dir = variable_get('user_picture_path', 'pictures');
       $pic_path = file_directory_path() .'/'.$picture_dir .'/picture-'.$user->uid.'.jpg';
 
Index: tests/user_module.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/simpletest/tests/user_module.test,v
retrieving revision 1.1
diff -u -p -r1.1 user_module.test
--- tests/user_module.test	5 Jan 2008 10:38:52 -0000	1.1
+++ tests/user_module.test	21 Jan 2008 07:48:41 -0000
@@ -24,7 +24,7 @@ class UserRegistrationTest extends Drupa
     $mail = "$name@example.com";
     $edit = array('name' => $name,
                   'mail' => $mail);
-    $this->drupalPostRequest('user/register', $edit, 'Create new account');
+    $this->drupalPost('user/register', $edit, 'Create new account');
 
     $this->assertText(t('Your password and further instructions have been sent to your e-mail address.'), 'Your password and further instructions ... found');
     $this->assertNoText(t('The name %name has been denied access.', array('%name' => $name)), 'not denied access');
@@ -55,7 +55,7 @@ class UserRegistrationTest extends Drupa
 
     /* We try to login with a wrong password */
     $login_edit = array('name' => $name, 'pass' => 'foo');
-    $this->drupalPostRequest('user', $login_edit, 'Log in');
+    $this->drupalPost('user', $login_edit, 'Log in');
     $this->assertText(t('Sorry, unrecognized username or password. Have you forgotten your password?'), 'Test for failed Login');
     $url = user_pass_reset_url($user);
     /* TODO: find a better way, we currently have to do it that way, see user.module line 1041. */
@@ -86,7 +86,7 @@ class UserRegistrationTest extends Drupa
 
     /* login again */
     $login_edit['pass'] = $new_pass;
-    $this->drupalPostRequest('user', $login_edit, 'Log in');
+    $this->drupalPost('user', $login_edit, 'Log in');
 
     $pname = $user->name;
 
@@ -195,7 +195,7 @@ class UserAccessTest extends DrupalTestC
     $edit = array('name' => $name,
                   'mail' => $mail);
 
-    $this->drupalPostRequest('user/register', $edit, 'Create new account');
+    $this->drupalPost('user/register', $edit, 'Create new account');
 
     $this->assertNoUnWantedText(t('Your password and further instructions have been sent to your e-mail address.'), 'blocked user: Your password and further instructions - not found');
     $this->assertText(t('The name @name has been denied access.', array('@name' => $name)), 'blocked user: denied access - found');
@@ -209,7 +209,7 @@ class UserAccessTest extends DrupalTestC
     $edit = array('name' => $name,
                   'mail' => $mail);
 
-    $this->drupalPostRequest('user/register', $edit, 'Create new account');
+    $this->drupalPost('user/register', $edit, 'Create new account');
 
     $this->assertText(t('Your password and further instructions have been sent to your e-mail address.'), 'access user: Your password and further instructions - found');
     $this->assertNoText(t('The name @name has been denied access.', array('@name' => $name)), 'access user: denied access - not found');
@@ -248,7 +248,7 @@ class UserDeleteTest extends DrupalTestC
     $mail = "$name@example.com";
     $edit = array('name' => $name,
                   'mail' => $mail);
-    $this->drupalPostRequest('user/register', $edit, 'Create new account');
+    $this->drupalPost('user/register', $edit, 'Create new account');
     $user_to_delete = user_load($edit);
     $uid = $user_to_delete->uid;
     $web_user = $this->drupalCreateUserRolePerm(array('administer users'));
