Index: modules/aggregator/aggregator.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.test,v
retrieving revision 1.28
diff -u -p -r1.28 aggregator.test
--- modules/aggregator/aggregator.test 30 Jul 2009 19:24:20 -0000 1.28
+++ modules/aggregator/aggregator.test 12 Aug 2009 19:00:09 -0000
@@ -253,7 +253,7 @@ EOF;
$edit = array();
$edit['title'] = $this->randomName();
$edit['body[0][value]'] = $this->randomName();
- $this->drupalPost('node/add/article', $edit, t('Save'));
+ $this->drupalPost('node/add/article', $edit, t('Publish'));
}
}
}
Index: modules/blog/blog.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/blog/blog.test,v
retrieving revision 1.17
diff -u -p -r1.17 blog.test
--- modules/blog/blog.test 3 Aug 2009 03:04:33 -0000 1.17
+++ modules/blog/blog.test 12 Aug 2009 19:00:09 -0000
@@ -153,7 +153,7 @@ class BlogTestCase extends DrupalWebTest
$edit = array();
$edit['title'] = 'node/' . $node->nid;
$edit['body[0][value]'] = $this->randomName(256);
- $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+ $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish'));
$this->assertRaw(t('Blog entry %title has been updated.', array('%title' => $edit['title'])), t('Blog node was edited'));
// Delete blog node.
Index: modules/book/book.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book.test,v
retrieving revision 1.13
diff -u -p -r1.13 book.test
--- modules/book/book.test 20 Jul 2009 18:51:32 -0000 1.13
+++ modules/book/book.test 12 Aug 2009 19:00:10 -0000
@@ -65,7 +65,7 @@ class BookTestCase extends DrupalWebTest
$other_book = $this->createBookNode('new');
$node = $this->createBookNode($book->nid);
$edit = array('book[bid]' => $other_book->nid);
- $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+ $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish'));
$this->drupalLogout();
$this->drupalLogin($web_user);
@@ -180,10 +180,10 @@ class BookTestCase extends DrupalWebTest
$this->drupalPost('node/add/book', $edit, t('Change book (update list of parents)'));
$edit['book[plid]'] = $parent;
- $this->drupalPost(NULL, $edit, t('Save'));
+ $this->drupalPost(NULL, $edit, t('Publish'));
}
else {
- $this->drupalPost('node/add/book', $edit, t('Save'));
+ $this->drupalPost('node/add/book', $edit, t('Publish'));
}
// Check to make sure the book node was created.
Index: modules/dblog/dblog.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/dblog/dblog.test,v
retrieving revision 1.25
diff -u -p -r1.25 dblog.test
--- modules/dblog/dblog.test 11 Aug 2009 11:47:58 -0000 1.25
+++ modules/dblog/dblog.test 12 Aug 2009 19:00:10 -0000
@@ -262,14 +262,14 @@ class DBLogTestCase extends DrupalWebTes
// Create node using form to generate add content event (which is not triggered by drupalCreateNode).
$edit = $this->getContent($type);
$title = $edit['title'];
- $this->drupalPost('node/add/' . $type, $edit, t('Save'));
+ $this->drupalPost('node/add/' . $type, $edit, t('Publish'));
$this->assertResponse(200);
// Retrieve node object.
$node = $this->drupalGetNodeByTitle($title);
$this->assertTrue($node != NULL, t('Node @title was loaded', array('@title' => $title)));
// Edit node.
$edit = $this->getContentUpdate($type);
- $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+ $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish'));
$this->assertResponse(200);
// Delete node.
$this->drupalPost('node/' . $node->nid . '/delete', array(), t('Delete'));
Index: modules/filter/filter.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.test,v
retrieving revision 1.28
diff -u -p -r1.28 filter.test
--- modules/filter/filter.test 27 Jul 2009 20:15:35 -0000 1.28
+++ modules/filter/filter.test 12 Aug 2009 19:00:11 -0000
@@ -112,7 +112,7 @@ class FilterAdminTestCase extends Drupal
$edit['title'] = $this->randomName();
$edit['body[0][value]'] = $body . '
' . filter_xss($revision->log) . '
' : ''), 'class' => 'revision-current'); - $operations[] = array('data' => theme('placeholder', t('current revision')), 'class' => 'revision-current', 'colspan' => 2); + $operations[] = array('data' => theme('placeholder', t('current revision')), 'class' => 'revision-current', 'colspan' => 3); } else { $row[] = t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), "node/$node->nid/revisions/$revision->vid/view"), '!username' => theme('username', $revision))) . (($revision->log != '') ? '' . filter_xss($revision->log) . '
' : ''); if ($revert_permission) { - $operations[] = l(t('revert'), "node/$node->nid/revisions/$revision->vid/revert"); + $operations[] = l(t('publish'), "node/$node->nid/revisions/$revision->vid/revert"); } if ($delete_permission) { $operations[] = l(t('delete'), "node/$node->nid/revisions/$revision->vid/delete"); } + if ($revert_permission) { + $operations[] = l(t('edit'), "node/$node->nid/edit/revision/$revision->vid"); + } } $rows[] = array_merge($row, $operations); } - + $build['node_revisions_table'] = array( '#theme' => 'table', '#rows' => $rows, @@ -530,12 +630,13 @@ function node_revision_overview($node) { */ function node_revision_revert_confirm($form_state, $node_revision) { $form['#node_revision'] = $node_revision; - return confirm_form($form, t('Are you sure you want to revert to the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/' . $node_revision->nid . '/revisions', '', t('Revert'), t('Cancel')); + return confirm_form($form, t('Are you sure you want to publish the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/' . $node_revision->nid . '/revisions', '', t('Publish'), t('Cancel')); } function node_revision_revert_confirm_submit($form, &$form_state) { $node_revision = $form['#node_revision']; $node_revision->revision = 1; + $node_revision->draft = 0; $node_revision->log = t('Copy of the revision from %date.', array('%date' => format_date($node_revision->revision_timestamp))); if (module_exists('taxonomy')) { $node_revision->taxonomy = array_keys($node_revision->taxonomy); @@ -555,12 +656,7 @@ function node_revision_delete_confirm($f function node_revision_delete_confirm_submit($form, &$form_state) { $node_revision = $form['#node_revision']; - db_delete('node_revision') - ->condition('nid', $node_revision->nid) - ->condition('vid', $node_revision->vid) - ->execute(); - module_invoke_all('node_delete_revision', $node_revision); - field_attach_delete_revision('node', $node_revision); + node_delete_revision($node_revision->nid, $node_revision->vid); watchdog('content', '@type: deleted %title revision %revision.', array('@type' => $node_revision->type, '%title' => $node_revision->title, '%revision' => $node_revision->vid)); drupal_set_message(t('Revision from %revision-date of @type %title has been deleted.', array('%revision-date' => format_date($node_revision->revision_timestamp), '@type' => node_type_get_name($node_revision), '%title' => $node_revision->title))); $form_state['redirect'] = 'node/' . $node_revision->nid; Index: modules/node/node.test =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.test,v retrieving revision 1.38 diff -u -p -r1.38 node.test --- modules/node/node.test 28 Jul 2009 19:18:06 -0000 1.38 +++ modules/node/node.test 12 Aug 2009 19:00:17 -0000 @@ -150,7 +150,7 @@ class NodeRevisionsTestCase extends Drup } // Confirm that revisions revert properly. - $this->drupalPost("node/$node->nid/revisions/{$nodes[1]->vid}/revert", array(), t('Revert')); + $this->drupalPost("node/$node->nid/revisions/{$nodes[1]->vid}/revert", array(), t('Publish')); $this->assertRaw(t('@type %title has been reverted back to the revision from %revision-date.', array('@type' => 'Page', '%title' => $nodes[1]->title, '%revision-date' => format_date($nodes[1]->revision_timestamp))), t('Revision reverted.')); @@ -191,7 +191,7 @@ class PageEditTestCase extends DrupalWeb $edit = array(); $edit['title'] = $this->randomName(8); $edit[$body_key] = $this->randomName(16); - $this->drupalPost('node/add/page', $edit, t('Save')); + $this->drupalPost('node/add/page', $edit, t('Publish')); // Check that the node exists in the database. $node = $this->drupalGetNodeByTitle($edit['title']); @@ -213,7 +213,7 @@ class PageEditTestCase extends DrupalWeb $edit['title'] = $this->randomName(8); $edit[$body_key] = $this->randomName(16); // Stay on the current page, without reloading. - $this->drupalPost(NULL, $edit, t('Save')); + $this->drupalPost(NULL, $edit, t('Publish')); // Check that the title and body fields are displayed with the updated values. $this->assertText($edit['title'], t('Title displayed.')); @@ -312,7 +312,7 @@ class PageCreationTestCase extends Drupa $edit = array(); $edit['title'] = $this->randomName(8); $edit['body[0][value]'] = $this->randomName(16); - $this->drupalPost('node/add/page', $edit, t('Save')); + $this->drupalPost('node/add/page', $edit, t('Publish')); // Check that the page has been created. $this->assertRaw(t('!post %title has been created.', array('!post' => 'Page', '%title' => $edit['title'])), t('Page created.')); @@ -501,7 +501,7 @@ class NodePostSettingsTestCase extends D $edit = array(); $edit['title'] = $this->randomName(8); $edit['body[0][value]'] = $this->randomName(16); - $this->drupalPost('node/add/page', $edit, t('Save')); + $this->drupalPost('node/add/page', $edit, t('Publish')); // Check that the post information is displayed. $node = $this->drupalGetNodeByTitle($edit['title']); @@ -522,7 +522,7 @@ class NodePostSettingsTestCase extends D $edit = array(); $edit['title'] = $this->randomName(8); $edit['body[0][value]'] = $this->randomName(16); - $this->drupalPost('node/add/page', $edit, t('Save')); + $this->drupalPost('node/add/page', $edit, t('Publish')); // Check that the post information is displayed. $node = $this->drupalGetNodeByTitle($edit['title']); Index: modules/path/path.test =================================================================== RCS file: /cvs/drupal/drupal/modules/path/path.test,v retrieving revision 1.17 diff -u -p -r1.17 path.test --- modules/path/path.test 11 Aug 2009 11:52:46 -0000 1.17 +++ modules/path/path.test 12 Aug 2009 19:00:17 -0000 @@ -113,7 +113,7 @@ class PathTestCase extends DrupalWebTest // Create alias. $edit = array(); $edit['path'] = $this->randomName(8); - $this->drupalPost('node/' . $node1->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node1->nid . '/edit', $edit, t('Publish')); // Confirm that the alias works. $this->drupalGet($edit['path']); @@ -122,7 +122,7 @@ class PathTestCase extends DrupalWebTest // Change alias. $previous = $edit['path']; $edit['path'] = $this->randomName(8); - $this->drupalPost('node/' . $node1->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node1->nid . '/edit', $edit, t('Publish')); // Confirm that the alias works. $this->drupalGet($edit['path']); @@ -138,13 +138,13 @@ class PathTestCase extends DrupalWebTest // Set alias to second test node. // Leave $edit['path'] the same. - $this->drupalPost('node/' . $node2->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node2->nid . '/edit', $edit, t('Publish')); // 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->drupalPost('node/' . $node1->nid . '/edit', array('path' => ''), t('Save')); + $this->drupalPost('node/' . $node1->nid . '/edit', array('path' => ''), t('Publish')); // Confirm that the alias no longer works. $this->drupalGet($edit['path']); @@ -201,7 +201,7 @@ class PathLanguageTestCase extends Drupa $edit = array(); $edit['language'] = 'en'; $edit['path'] = $this->randomName(); - $this->drupalPost('node/' . $english_node->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $english_node->nid . '/edit', $edit, t('Publish')); // Confirm that the alias works. $this->drupalGet($edit['path']); @@ -214,7 +214,7 @@ class PathLanguageTestCase extends Drupa $edit['title'] = $this->randomName(); $edit['body[0][value]'] = $this->randomName(); $edit['path'] = $this->randomName(); - $this->drupalPost(NULL, $edit, t('Save')); + $this->drupalPost(NULL, $edit, t('Publish')); // Clear the path lookup cache. drupal_lookup_path('wipe'); Index: modules/php/php.test =================================================================== RCS file: /cvs/drupal/drupal/modules/php/php.test,v retrieving revision 1.14 diff -u -p -r1.14 php.test --- modules/php/php.test 13 Jul 2009 21:51:11 -0000 1.14 +++ modules/php/php.test 12 Aug 2009 19:00:17 -0000 @@ -61,7 +61,7 @@ class PHPFilterTestCase extends PHPTestC // Change filter to PHP filter and see that PHP code is evaluated. $edit = array(); $edit['body[0][value_format]'] = 3; - $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish')); $this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title)), t('PHP code filter turned on.')); // Make sure that the PHP code shows up as text. Index: modules/poll/poll.test =================================================================== RCS file: /cvs/drupal/drupal/modules/poll/poll.test,v retrieving revision 1.21 diff -u -p -r1.21 poll.test --- modules/poll/poll.test 20 Jul 2009 18:51:33 -0000 1.21 +++ modules/poll/poll.test 12 Aug 2009 19:00:18 -0000 @@ -44,7 +44,7 @@ class PollTestCase extends DrupalWebTest list($edit, $index) = $this->_pollGenerateEdit($title, $choices, $index); } - $this->drupalPost(NULL, $edit, t('Save')); + $this->drupalPost(NULL, $edit, t('Publish')); $node = $this->drupalGetNodeByTitle($title); $this->assertText(t('@type @title has been created.', array('@type' => node_type_get_name('poll'), '@title' => $title)), 'Poll has been created.'); $this->assertTrue($node->nid, t('Poll has been found in the database.')); @@ -79,7 +79,7 @@ class PollTestCase extends DrupalWebTest function pollUpdate($nid, $title, $edit) { // Edit the poll node. - $this->drupalPost('node/' . $nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $nid . '/edit', $edit, t('Publish')); $this->assertText(t('@type @title has been updated.', array('@type' => node_type_get_name('poll'), '@title' => $title)), 'Poll has been updated.'); } } Index: modules/system/system.test =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.test,v retrieving revision 1.62 diff -u -p -r1.62 system.test --- modules/system/system.test 5 Aug 2009 16:16:41 -0000 1.62 +++ modules/system/system.test 12 Aug 2009 19:00:19 -0000 @@ -701,7 +701,7 @@ class PageTitleFiltering extends DrupalW 'body[0][value]' => '!SimpleTest! test body' . $this->randomName(200), ); // Create the node with HTML in the title. - $this->drupalPost('node/add/page', $edit, t('Save')); + $this->drupalPost('node/add/page', $edit, t('Publish')); $node = $this->drupalGetNodeByTitle($edit['title']); $this->assertNotNull($node, 'Node created and found in database'); Index: modules/taxonomy/taxonomy.test =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.test,v retrieving revision 1.43 diff -u -p -r1.43 taxonomy.test --- modules/taxonomy/taxonomy.test 4 Aug 2009 06:50:07 -0000 1.43 +++ modules/taxonomy/taxonomy.test 12 Aug 2009 19:00:19 -0000 @@ -455,7 +455,7 @@ class TaxonomyTermTestCase extends Taxon $edit['title'] = $this->randomName(); $edit['body[0][value]'] = $this->randomName(); $edit['taxonomy[' . $this->vocabulary->vid . ']'] = $term1->tid; - $this->drupalPost('node/add/article', $edit, t('Save')); + $this->drupalPost('node/add/article', $edit, t('Publish')); // Check that the term is displayed when the node is viewed. $node = $this->drupalGetNodeByTitle($edit['title']); @@ -464,7 +464,7 @@ class TaxonomyTermTestCase extends Taxon // Edit the node with a different term. $edit['taxonomy[' . $this->vocabulary->vid . ']'] = $term2->tid; - $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish')); $this->drupalGet('node/' . $node->nid); $this->assertText($term2->name, t('Term is displayed when viewing the node.')); @@ -496,7 +496,7 @@ class TaxonomyTermTestCase extends Taxon // free-tagging field created by the default profile. $edit['taxonomy[tags][' . $this->vocabulary->vid . ']'] = implode(', ', $terms); $edit['body[0][value]'] = $this->randomName(); - $this->drupalPost('node/add/article', $edit, t('Save')); + $this->drupalPost('node/add/article', $edit, t('Publish')); $this->assertRaw(t('@type %title has been created.', array('@type' => t('Article'), '%title' => $edit['title'])), t('The node was created successfully')); foreach ($terms as $term) { $this->assertText($term, t('The term was saved and appears on the node page')); Index: modules/translation/translation.test =================================================================== RCS file: /cvs/drupal/drupal/modules/translation/translation.test,v retrieving revision 1.15 diff -u -p -r1.15 translation.test --- modules/translation/translation.test 11 Aug 2009 11:52:46 -0000 1.15 +++ modules/translation/translation.test 12 Aug 2009 19:00:19 -0000 @@ -61,7 +61,7 @@ class TranslationTestCase extends Drupal $edit = array(); $edit['title'] = $this->randomName(); $edit['body[0][value]'] = $this->randomName(); - $this->drupalPost('node/add/page', $edit, t('Save'), array('query' => array('translation' => $node->nid, 'language' => 'es'))); + $this->drupalPost('node/add/page', $edit, t('Publish'), array('query' => array('translation' => $node->nid, 'language' => 'es'))); $duplicate = $this->drupalGetNodeByTitle($edit['title']); $this->assertEqual($duplicate->tnid, 0, t('The node does not have a tnid.')); @@ -69,7 +69,7 @@ class TranslationTestCase extends Drupal $edit = array(); $edit['body[0][value]'] = $this->randomName(); $edit['translation[retranslate]'] = TRUE; - $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish')); $this->assertRaw(t('Page %title has been updated.', array('%title' => $node_title)), t('Original node updated.')); // Check to make sure that interface shows translation as outdated @@ -80,7 +80,7 @@ class TranslationTestCase extends Drupal $edit = array(); $edit['body[0][value]'] = $this->randomName(); $edit['translation[status]'] = FALSE; - $this->drupalPost('node/' . $node_translation->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node_translation->nid . '/edit', $edit, t('Publish')); $this->assertRaw(t('Page %title has been updated.', array('%title' => $node_translation_title)), t('Translated node updated.')); } @@ -130,7 +130,7 @@ class TranslationTestCase extends Drupal $edit['title'] = $title; $edit['body[0][value]'] = $body; $edit['language'] = $language; - $this->drupalPost('node/add/page', $edit, t('Save')); + $this->drupalPost('node/add/page', $edit, t('Publish')); $this->assertRaw(t('Page %title has been created.', array('%title' => $edit['title'])), t('Page created.')); // Check to make sure the node was created. @@ -154,7 +154,7 @@ class TranslationTestCase extends Drupal $edit = array(); $edit['title'] = $title; $edit['body[0][value]'] = $body; - $this->drupalPost(NULL, $edit, t('Save')); + $this->drupalPost(NULL, $edit, t('Publish')); $this->assertRaw(t('Page %title has been created.', array('%title' => $edit['title'])), t('Translation created.')); // Check to make sure that translation was successful. Index: modules/trigger/trigger.test =================================================================== RCS file: /cvs/drupal/drupal/modules/trigger/trigger.test,v retrieving revision 1.15 diff -u -p -r1.15 trigger.test --- modules/trigger/trigger.test 28 Jul 2009 19:18:08 -0000 1.15 +++ modules/trigger/trigger.test 12 Aug 2009 19:00:20 -0000 @@ -33,18 +33,30 @@ class TriggerContentTestCase extends Dru $this->drupalLogin($test_user); $edit = array('aid' => $hash); $this->drupalPost('admin/structure/trigger/node', $edit, t('Assign')); - // Create an unpublished node. - $web_user = $this->drupalCreateUser(array('create page content', 'access content', 'administer nodes')); + // Create a node. + $web_user = $this->drupalCreateUser(array('create page content', 'edit any page content', 'access content', 'administer nodes')); $this->drupalLogin($web_user); $edit = array(); $edit['title'] = '!SimpleTest test node! ' . $this->randomName(10); $edit['body[0][value]'] = '!SimpleTest test body! ' . $this->randomName(32) . ' ' . $this->randomName(32); - $edit[$info['property']] = !$info['expected']; - $this->drupalPost('node/add/page', $edit, t('Save')); - // Make sure the text we want appears. - $this->assertRaw(t('!post %title has been created.', array('!post' => 'Page', '%title' => $edit['title'])), t('Make sure the page has actually been created')); + + // Publish and unpublish are buttons rather than checkboxes. + if ($action == 'node_publish_action') { + $this->drupalPost('node/add/page', $edit, t('Publish')); + } + elseif ($action == 'node_unpublish_action') { + // The 'Unpublish' button does not appear on the node/add page + // so use 'save as draft' instead. + $this->drupalPost('node/add/page', $edit, t('Save as draft')); + } + else { + $edit[$info['property']] = !$info['expected']; + $this->drupalPost('node/add/page', $edit, t('Publish')); + // Make sure the text we want appears. + $this->assertRaw(t('!post %title has been created.', array('!post' => 'Page', '%title' => $edit['title'])), t('Make sure the page has actually been created')); + } // Action should have been fired. - $loaded_node = $this->drupalGetNodeByTitle($edit['title']);; + $loaded_node = $this->drupalGetNodeByTitle($edit['title']); $this->assertTrue($loaded_node->$info['property'] == $info['expected'], t('Make sure the @action action fired.', array('@action' => $info['name']))); // Leave action assigned for next test Index: modules/upload/upload.test =================================================================== RCS file: /cvs/drupal/drupal/modules/upload/upload.test,v retrieving revision 1.22 diff -u -p -r1.22 upload.test --- modules/upload/upload.test 28 Jul 2009 19:18:08 -0000 1.22 +++ modules/upload/upload.test 12 Aug 2009 19:00:20 -0000 @@ -73,7 +73,7 @@ class UploadTestCase extends DrupalWebTe // Rename file. $edit = array(); $edit['files[' . $upload->fid . '][description]'] = $new_name = substr($upload->description, 1); - $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish')); $this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title)), 'File renamed successfully.'); $this->assertText($new_name, $new_name . ' found on node.'); @@ -82,7 +82,7 @@ class UploadTestCase extends DrupalWebTe // Delete a file. $edit = array(); $edit['files[' . $upload->fid . '][remove]'] = TRUE; - $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish')); $this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title)), 'File deleted successfully.'); $this->assertNoText($new_name, $new_name . ' not found on node.'); @@ -193,7 +193,7 @@ class UploadTestCase extends DrupalWebTe function uploadFile($node, $filename, $assert = TRUE) { $edit = array(); $edit['files[upload]'] = $filename; //edit-upload - $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); + $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Publish')); if ($assert) { $this->assertRaw(t('Page %title has been updated.', array('%title' => $node->title)), 'File attached successfully.'); }