summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-11 16:49:38 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-11 16:49:38 +0000
commitbd108c7f1036858fc2b4293ee2bad0474129fab9 (patch)
treefd5a88544ca93829c2f38b9e1f4da4e7fef051e9 /modules/comment/comment.test
parentea02bd1d2e1b8f134ac810116223a42883b41c73 (diff)
downloadbrdo-bd108c7f1036858fc2b4293ee2bad0474129fab9.tar.gz
brdo-bd108c7f1036858fc2b4293ee2bad0474129fab9.tar.bz2
- Patch #299778 by hswong3i, Arancaytar, Dave Reid et al: code clean-up.
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r--modules/comment/comment.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index c342a4baa..70c6d6cba 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -321,7 +321,7 @@ class CommentInterfaceTest extends CommentHelperCase {
$this->assertText('This discussion is closed', t('Posting to node with comments disabled'));
$this->assertNoField('edit-comment', t('Comment body field found.'));
- // Attempt to post to node with read-only comments.
+ // Attempt to post to node with read-only comments.
$this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1, 'comment' => COMMENT_NODE_READ_ONLY));
$this->assertTrue($this->node, t('Article node created.'));
$this->drupalGet('comment/reply/' . $this->node->nid);
@@ -462,14 +462,14 @@ class CommentAnonymous extends CommentHelperCase {
$this->drupalLogin($this->admin_user);
$this->setAnonymousUserComment(FALSE, FALSE);
- // Attempt to view comments while disallowed.
+ // Attempt to view comments while disallowed.
// NOTE: if authenticated user has permission to post comments, then a
// "Login or register to post comments" type link may be shown.
$this->drupalLogout();
$this->drupalGet('node/' . $this->node->nid);
$this->assertNoRaw('<div id="comments">', t('Comments were not displayed.'));
$this->assertNoLink('Add new comment', t('Link to add comment was found.'));
-
+
// Attempt to view node-comment form while disallowed.
$this->drupalGet('comment/reply/' . $this->node->nid);
$this->assertText('You are not authorized to view comments', t('Error attempting to post comment.'));