diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-01 06:46:26 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-01 06:46:26 +0000 |
commit | 14dee546b5b226c3e62de02564e943a7e6a8c0b0 (patch) | |
tree | f3cf7ee5ca1fafdb758cbd3eba0d7fda9ed9b582 /modules | |
parent | 9ed75a193a234d4475a51b44171534c9fb56e665 (diff) | |
download | brdo-14dee546b5b226c3e62de02564e943a7e6a8c0b0.tar.gz brdo-14dee546b5b226c3e62de02564e943a7e6a8c0b0.tar.bz2 |
#700862 by David_Rothstein: Fixed Test for empty node log messages doesn't actually test what it's supposed to.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.test | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/node/node.test b/modules/node/node.test index b52e326d7..cfd2b2c2b 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -173,8 +173,10 @@ class NodeRevisionsTestCase extends DrupalWebTestCase { $log = $this->randomName(10); $node = $this->drupalCreateNode(array('log' => $log)); - // Save over the same revision but do not provide a log message, and check - // that the original log message is preserved. + // Save over the same revision and explicitly provide an empty log message + // (for example, to mimic the case of a node form submitted with no text in + // the "log message" field), and check that the original log message is + // preserved. $new_title = $this->randomName(10) . 'testNodeRevisionWithoutLogMessage1'; $updated_node = (object) array( 'nid' => $node->nid, @@ -182,6 +184,7 @@ class NodeRevisionsTestCase extends DrupalWebTestCase { 'uid' => $node->uid, 'type' => $node->type, 'title' => $new_title, + 'log' => '', ); node_save($updated_node); $this->drupalGet('node/' . $node->nid); |