? remove-auto-t-236535-3.patch ? simpletest ? simpletest-remove-auto-t-236535-4.patch ? simpletest-remove-auto-t-236535-6.patch ? simpletest_1.0.1beta2.tar.gz Index: drupal_test_case.php =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/drupal_test_case.php,v retrieving revision 1.59 diff -u -p -r1.59 drupal_test_case.php --- drupal_test_case.php 22 Mar 2008 00:31:33 -0000 1.59 +++ drupal_test_case.php 22 Mar 2008 00:53:43 -0000 @@ -673,7 +673,7 @@ class DrupalTestCase extends UnitTestCas $curl_options = array(CURLOPT_URL => $url_target); $ret = $this->curlExec($curl_options); } - $this->assertTrue($ret, ' [browser] clicked link '. t($label) . " ($url_target) from $url_before"); + $this->assertTrue($ret, " [browser] clicked link $label ($url_target) from $url_before"); } return $ret; } Index: tests/functional/aggregator.test =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/tests/functional/aggregator.test,v retrieving revision 1.1 diff -u -p -r1.1 aggregator.test --- tests/functional/aggregator.test 17 Mar 2008 21:26:55 -0000 1.1 +++ tests/functional/aggregator.test 22 Mar 2008 00:53:43 -0000 @@ -18,7 +18,7 @@ class DrupalAggregatorTestCase extends D */ function createFeed() { $edit = $this->getFeedEditArray(); - $this->drupalPost('admin/content/aggregator/add/feed', $edit, 'Save'); + $this->drupalPost('admin/content/aggregator/add/feed', $edit, t('Save')); $feed = db_fetch_object(db_query("SELECT * FROM {aggregator_feed} WHERE title = '%s' AND url='%s'", $edit['title'], $edit['url'])); $this->assertTrue(!empty($feed), 'The feed exists'); return $feed; @@ -74,7 +74,7 @@ class DrupalAggregatorTestCase extends D * @param object $feed - feed object with valid fid */ function removeFeedItems($feed) { - $this->drupalPost('admin/content/aggregator/remove/' . $feed->fid, array(), 'Remove items'); + $this->drupalPost('admin/content/aggregator/remove/' . $feed->fid, array(), t('Remove items')); } /** @@ -133,7 +133,7 @@ class UpdateFeedTestCase extends DrupalA $edit = $this->getFeedEditArray(); $edit['refresh'] = 1800; // change refresh value - $this->drupalPost('admin/content/aggregator/edit/feed/'. $feed->fid, $edit, 'Save'); + $this->drupalPost('admin/content/aggregator/edit/feed/'. $feed->fid, $edit, t('Save')); $this->assertWantedRaw(t('The feed %name has been updated.', array('%name' => $edit['title'])), t('The feed %name has been updated.', array('%name' => $edit['title']))); $this->assertEqual($this->getUrl(), url('admin/content/aggregator/', array('absolute' => TRUE))); $this->assertTrue($this->uniqueFeed($edit['title'], $edit['url']), 'The feed is unique.'); @@ -156,7 +156,7 @@ class RemoveFeedTestCase extends DrupalA function testRemoveFeed() { $feed = $this->createFeed(); - $this->drupalPost('admin/content/aggregator/edit/feed/'.$feed->fid, array(), 'Delete'); + $this->drupalPost('admin/content/aggregator/edit/feed/'.$feed->fid, array(), t('Delete')); $this->assertWantedRaw(t('The feed %name has been deleted.', array('%name' => $feed->title)), t('The feed %name has been added.', array('%name' => $feed->title))); $this->drupalGet('aggregator/sources/'. $feed->fid); $this->assertResponse(404); Index: tests/functional/block.test =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/tests/functional/block.test,v retrieving revision 1.3 diff -u -p -r1.3 block.test --- tests/functional/block.test 16 Mar 2008 23:30:55 -0000 1.3 +++ tests/functional/block.test 22 Mar 2008 00:53:43 -0000 @@ -30,7 +30,7 @@ class BlockModuleTestCase extends Drupal $box['info'] = $this->randomName(8); $box['title'] = $this->randomName(8); $box['body'] = $this->randomName(32); - $this->drupalPost('admin/build/block/add', $box, 'Save block'); + $this->drupalPost('admin/build/block/add', $box, t('Save block')); // Confirm that the box has been created, and then query the created bid. $this->assertText(t('The block has been created.'), 'Box successfully created.'); @@ -43,7 +43,7 @@ class BlockModuleTestCase extends Drupal // TODO: Implement full region checking $edit = array(); $edit['block_'. $bid .'[region]'] = 'left'; - $this->drupalPost('admin/build/block', $edit, 'Save blocks'); + $this->drupalPost('admin/build/block', $edit, t('Save blocks')); // Confirm that the box was moved to the proper region $this->assertText(t('The block settings have been updated.'), 'Box successfully moved to left region.'); @@ -52,7 +52,7 @@ class BlockModuleTestCase extends Drupal $this->assertText(t($box['title']), 'Box successfully being displayed on the page.'); // Delete the created box & verify that it's been deleted and no longer appearing on the page - $this->drupalPost('admin/build/block/delete/'. $bid, array(), 'Delete'); + $this->drupalPost('admin/build/block/delete/'. $bid, array(), t('Delete')); $this->assertWantedRaw(t('The block %title has been removed.', array('%title' => $box['info'])), 'Box successfully deleted.'); $this->assertNoText(t($box['title']), 'Box no longer appears on page.'); } @@ -68,7 +68,7 @@ class BlockModuleTestCase extends Drupal $block['title'] = $this->randomName(8); // Set block title to confirm that interface works and override any custom titles. - $this->drupalPost('admin/build/block/configure/'. $block['module'] .'/'. $block['delta'], array('title' => $block['title']), 'Save block'); + $this->drupalPost('admin/build/block/configure/'. $block['module'] .'/'. $block['delta'], array('title' => $block['title']), t('Save block')); $this->assertText(t('The block configuration has been saved.'), 'Block title set.'); $bid = db_result(db_query("SELECT bid FROM {blocks} WHERE module = '%s' AND delta = %d", array($block['module'], $block['delta']))); @@ -78,7 +78,7 @@ class BlockModuleTestCase extends Drupal // Set the created block to a specific region $edit = array(); $edit[$block['module'] .'_'. $block['delta'] .'[region]'] = 'left'; - $this->drupalPost('admin/build/block', $edit, 'Save blocks'); + $this->drupalPost('admin/build/block', $edit, t('Save blocks')); // Confirm that the block was moved to the proper region // TODO: Implement full region checking @@ -90,7 +90,7 @@ class BlockModuleTestCase extends Drupal // Set the block to the disabled region $edit = array(); $edit[$block['module'] .'_'. $block['delta'] .'[region]'] = '-1'; - $this->drupalPost('admin/build/block', $edit, 'Save blocks'); + $this->drupalPost('admin/build/block', $edit, t('Save blocks')); // Confirm that the block was moved to the proper region $this->assertText(t('The block settings have been updated.'), 'Block successfully move to disabled region.'); @@ -99,10 +99,10 @@ class BlockModuleTestCase extends Drupal // For convenience of developers, put the navigation block back. $edit = array(); $edit[$block['module'] .'_'. $block['delta'] .'[region]'] = 'left'; - $this->drupalPost('admin/build/block', $edit, 'Save blocks'); + $this->drupalPost('admin/build/block', $edit, t('Save blocks')); $this->assertText(t('The block settings have been updated.'), 'Block successfully move to disabled region.'); - $this->drupalPost('admin/build/block/configure/'. $block['module'] .'/'. $block['delta'], array('title' => 'Navigation'), 'Save block'); + $this->drupalPost('admin/build/block/configure/'. $block['module'] .'/'. $block['delta'], array('title' => 'Navigation'), t('Save block')); $this->assertText(t('The block configuration has been saved.'), 'Block title set.'); } } Index: tests/functional/blogapi.test =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/tests/functional/blogapi.test,v retrieving revision 1.2 diff -u -p -r1.2 blogapi.test --- tests/functional/blogapi.test 16 Mar 2008 23:30:55 -0000 1.2 +++ tests/functional/blogapi.test 22 Mar 2008 00:53:43 -0000 @@ -108,8 +108,8 @@ class BlogAPIModuleTestCase extends Drup // Remove taxonmy vocab. $this->drupalLoginUser($admin_user); - $this->drupalPost('admin/content/taxonomy/edit/vocabulary/'. $vid, array(), 'Delete'); - $this->drupalPost(NULL, array(), 'Delete'); + $this->drupalPost('admin/content/taxonomy/edit/vocabulary/'. $vid, array(), t('Delete')); + $this->drupalPost(NULL, array(), t('Delete')); $this->assertWantedRaw(t('Deleted vocabulary %vocab.', array('%vocab' => 'simpletest_vocab')), 'Removed vocabulary.'); } @@ -122,7 +122,7 @@ class BlogAPIModuleTestCase extends Drup $edit = array(); $edit['name'] = $vocab; $edit['nodes[blog]'] = TRUE; - $this->drupalPost('admin/content/taxonomy/add/vocabulary', $edit, 'Save'); + $this->drupalPost('admin/content/taxonomy/add/vocabulary', $edit, t('Save')); $this->assertWantedRaw(t('Created new vocabulary %vocab.', array('%vocab' => $edit['name'])), 'Taxonomy vocabulary added.'); $vocab_arr = taxonomy_get_vocabularies(); @@ -147,7 +147,7 @@ class BlogAPIModuleTestCase extends Drup function add_term($vid, $term) { $edit = array(); $edit['name'] = $term; - $this->drupalPost('admin/content/taxonomy/'. $vid .'/add/term', $edit, 'Save'); + $this->drupalPost('admin/content/taxonomy/'. $vid .'/add/term', $edit, t('Save')); $this->assertWantedRaw(t('Created new term %term.', array('%term' => $edit['name'])), 'Taxonomy term added.'); $tree = taxonomy_get_tree($vid); Index: tests/functional/book.test =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/tests/functional/book.test,v retrieving revision 1.2 diff -u -p -r1.2 book.test --- tests/functional/book.test 16 Mar 2008 23:30:55 -0000 1.2 +++ tests/functional/book.test 22 Mar 2008 00:53:43 -0000 @@ -126,13 +126,13 @@ class BookModuleTestCase extends DrupalT $edit['book[bid]'] = $book_nid; if ($parent !== NULL) { - $this->drupalPost('node/add/book', $edit, 'Change book (update list of parents)'); + $this->drupalPost('node/add/book', $edit, t('Change book (update list of parents)')); $edit['book[plid]'] = $parent; - $this->drupalPost(NULL, $edit, 'Save'); + $this->drupalPost(NULL, $edit, t('Save')); } else - $this->drupalPost('node/add/book', $edit, 'Save'); + $this->drupalPost('node/add/book', $edit, t('Save')); // check to make sure the book node was created $node = node_load(array('title' => $edit['title'])); Index: tests/functional/comment.test =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/tests/functional/comment.test,v retrieving revision 1.5 diff -u -p -r1.5 comment.test --- tests/functional/comment.test 21 Mar 2008 23:29:49 -0000 1.5 +++ tests/functional/comment.test 22 Mar 2008 00:53:44 -0000 @@ -220,9 +220,9 @@ class CommentModuleTestCase extends Drup if ($preview) { $this->assertFieldById('edit-comment'); $this->assertNoPattern('/(input)(.*?)(value="Save")/', 'Save button not found.'); // Preview required so no save button should be found. - $this->drupalPost(NULL, $edit, 'Preview'); + $this->drupalPost(NULL, $edit, t('Preview')); } - $this->drupalPost(NULL, array(), 'Save'); + $this->drupalPost(NULL, array(), t('Save')); $match = array(); // Get comment ID @@ -265,7 +265,7 @@ class CommentModuleTestCase extends Drup * @param object $comment Comment to delete. */ function delete_comment($comment) { - $this->drupalPost('comment/delete/'. $comment->id, array(), 'Delete'); + $this->drupalPost('comment/delete/'. $comment->id, array(), t('Delete')); $this->assertWantedText(t('The comment and all its replies have been deleted.'), 'Comment deleted.'); } @@ -328,7 +328,7 @@ class CommentModuleTestCase extends Drup $edit['1[access comments]'] = $enabled; $edit['1[post comments]'] = $enabled; $edit['1[post comments without approval]'] = $without_approval; - $this->drupalPost('admin/user/permissions', $edit, 'Save permissions'); + $this->drupalPost('admin/user/permissions', $edit, t('Save permissions')); $this->assertText(t('The changes have been saved.'), 'Anonymous user comments '. ($enabled ? 'enabled' : 'disabled') .'.'); } @@ -352,10 +352,10 @@ class CommentModuleTestCase extends Drup $edit = array(); $edit['operation'] = $operation; $edit['comments['. $comment->id .']'] = TRUE; - $this->drupalPost('admin/content/comment'. ($approval ? '/approval' : ''), $edit, 'Update'); + $this->drupalPost('admin/content/comment'. ($approval ? '/approval' : ''), $edit, t('Update')); if ($operation == 'delete') { - $this->drupalPost(NULL, array(), 'Delete comments'); + $this->drupalPost(NULL, array(), t('Delete comments')); $this->assertText(t('The comments have been deleted.'), 'Operation "'. $operation .'" was performed on comment.'); } else { Index: tests/functional/contact.test =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/tests/functional/contact.test,v retrieving revision 1.3 diff -u -p -r1.3 contact.test --- tests/functional/contact.test 21 Mar 2008 23:29:49 -0000 1.3 +++ tests/functional/contact.test 22 Mar 2008 00:53:44 -0000 @@ -32,7 +32,7 @@ class ContactModuleTestCase extends Drup $edit['contact_form_information'] = $this->randomName(100); $edit['contact_hourly_threshold'] = 3; $edit['contact_default_status'] = TRUE; - $this->drupalPost('admin/build/contact/settings', $edit, 'Save configuration'); + $this->drupalPost('admin/build/contact/settings', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), 'Setting successfully saved.'); $this->reload_variables(); @@ -121,7 +121,7 @@ class ContactModuleTestCase extends Drup // Enable the personal contact form. $edit = array(); $edit['contact_default_status'] = TRUE; - $this->drupalPost('admin/build/contact/settings', $edit, 'Save configuration'); + $this->drupalPost('admin/build/contact/settings', $edit, it('Save configuration')); $this->assertText(t('The configuration options have been saved.'), 'Setting successfully saved.'); // Reload variables. @@ -140,7 +140,7 @@ class ContactModuleTestCase extends Drup $edit = array(); $edit['subject'] = $this->randomName(16); $edit['message'] = $this->randomName(64); - $this->drupalPost(NULL, $edit, 'Send e-mail'); + $this->drupalPost(NULL, $edit, t('Send e-mail')); $this->assertText(t('The message has been sent.'), 'Message sent.'); $this->drupalGet('logout'); @@ -150,7 +150,7 @@ class ContactModuleTestCase extends Drup // Disable the personal contact form. $edit = array(); $edit['contact_default_status'] = FALSE; - $this->drupalPost('admin/build/contact/settings', $edit, 'Save configuration'); + $this->drupalPost('admin/build/contact/settings', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), 'Setting successfully saved.'); // Reload variables. @@ -181,7 +181,7 @@ class ContactModuleTestCase extends Drup $edit['recipients'] = $recipients; $edit['reply'] = $reply; $edit['selected'] = ($selected ? '1' : '0'); - $this->drupalPost('admin/build/contact/add', $edit, 'Save'); + $this->drupalPost('admin/build/contact/add', $edit, t('Save')); } /** @@ -200,7 +200,7 @@ class ContactModuleTestCase extends Drup $edit['subject'] = $subject; $edit['cid'] = $cid; $edit['message'] = $message; - $this->drupalPost('contact', $edit, 'Send e-mail'); + $this->drupalPost('contact', $edit, t('Send e-mail')); } /** @@ -210,7 +210,7 @@ class ContactModuleTestCase extends Drup $categories = $this->get_categories(); foreach ($categories as $category) { $category_name = db_result(db_query('SELECT category FROM {contact} WHERE cid = %d', array($category))); - $this->drupalPost('admin/build/contact/delete/'. $category, array(), 'Delete'); + $this->drupalPost('admin/build/contact/delete/'. $category, array(), t('Delete')); $this->assertWantedRaw(t('Category %category has been deleted.', array('%category' => $category_name)), 'Category deleted sucessfully.'); } } @@ -248,7 +248,7 @@ class ContactModuleTestCase extends Drup $edit[$rid .'['. $name .']'] = $value; } - $this->drupalPost('admin/user/permissions', $edit, 'Save permissions'); + $this->drupalPost('admin/user/permissions', $edit, t('Save permissions')); $this->assertText(t('The changes have been saved.'), ' [permission] Saved changes.'); } Index: tests/functional/filter.test =================================================================== RCS file: /cvs/drupal/contributions/modules/simpletest/tests/functional/filter.test,v retrieving revision 1.2 diff -u -p -r1.2 filter.test --- tests/functional/filter.test 16 Mar 2008 23:30:55 -0000 1.2 +++ tests/functional/filter.test 22 Mar 2008 00:53:44 -0000 @@ -36,7 +36,7 @@ class FilterModuleTestCase extends Drupa // Change default filter. $edit = array(); $edit['default'] = $full; - $this->drupalPost('admin/settings/filters', $edit, $version_seven ? 'Save changes' : 'Set default format'); + $this->drupalPost('admin/settings/filters', $edit, t('Save changes')); $this->assertText(t('Default format updated.'), 'Default filter updated successfully.'); $this->assertNoUnwantedRaw('admin/settings/filters/delete/'. $full, 'Delete link not found.'); @@ -44,7 +44,7 @@ class FilterModuleTestCase extends Drupa // Add an additional tag. $edit = array(); $edit['allowed_html_1'] = '