summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-22 10:12:25 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-22 10:12:25 +0000
commit186fb08d7b08ea5b4e557b4af11d97883d931382 (patch)
treec3a70d62f0e1e7c3d83e8924141d8f470d9ed3dc /modules/comment/comment.test
parent4095b6cf996eb6c5da7e99f7dfb5801636f1a7dd (diff)
downloadbrdo-186fb08d7b08ea5b4e557b4af11d97883d931382.tar.gz
brdo-186fb08d7b08ea5b4e557b4af11d97883d931382.tar.bz2
#777372 by cwgordon7, Gábor Hojtsy: Fixed Regression: anonymous comments cannot be edited on Drupal 7. (with tests)
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r--modules/comment/comment.test11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 66933615e..0a0794ddf 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -530,11 +530,18 @@ class CommentAnonymous extends CommentHelperCase {
$this->assertFalse($this->commentExists($anonymous_comment3), t('Anonymous comment with contact info (required) not found.'));
// Post comment with contact info (required).
- $anonymous_comment3 = $this->postComment($this->node, $this->randomName(), $this->randomName(), array('mail' => 'tester@simpletest.org'));
+ $author_name = $this->randomName();
+ $author_mail = $this->randomName() . '@example.com';
+ $anonymous_comment3 = $this->postComment($this->node, $this->randomName(), $this->randomName(), array('name' => $author_name, 'mail' => $author_mail));
$this->assertTrue($this->commentExists($anonymous_comment3), t('Anonymous comment with contact info (required) found.'));
- // Unpublish comment.
+ // Make sure the user data appears correctly when editing the comment.
$this->drupalLogin($this->admin_user);
+ $this->drupalGet('comment/' . $anonymous_comment3->id . '/edit');
+ $this->assertRaw($author_name, t("The anonymous user's name is correct when editing the comment."));
+ $this->assertRaw($author_mail, t("The anonymous user's e-mail address is correct when editing the comment."));
+
+ // Unpublish comment.
$this->performCommentOperation($anonymous_comment3, 'unpublish');
$this->drupalGet('admin/content/comment/approval');