summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-29 23:51:36 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-29 23:51:36 -0700
commit0f9c1354d1077e5d13dc57090de802b00b0adbe4 (patch)
tree9904407fededecd2b729fb3c8b6f2920a3e0ac65 /modules/comment/comment.test
parentc40fde088c95cb6d44767b1b1a23f57f21894f63 (diff)
downloadbrdo-0f9c1354d1077e5d13dc57090de802b00b0adbe4.tar.gz
brdo-0f9c1354d1077e5d13dc57090de802b00b0adbe4.tar.bz2
Issue #813052 by lyricnz, droplet, dinknaround: Fixed Undefined index: format in comment_preview() line 2065 and line 2183.
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r--modules/comment/comment.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 770e01d4a..82c600893 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -1912,4 +1912,19 @@ class CommentFieldsTest extends CommentHelperCase {
$this->postComment($book_node, $this->randomName(), $this->randomName());
$this->postComment($poll_node, $this->randomName(), $this->randomName());
}
+
+ /**
+ * Test that comment module works correctly with plain text format.
+ */
+ function testCommentFormat() {
+ // Disable text processing for comments.
+ $this->drupalLogin($this->admin_user);
+ $edit = array('instance[settings][text_processing]' => 0);
+ $this->drupalPost('admin/structure/types/manage/article/comment/fields/comment_body', $edit, t('Save settings'));
+
+ // Post a comment without an explicit subject.
+ $this->drupalLogin($this->web_user);
+ $edit = array('comment_body[und][0][value]' => $this->randomName(8));
+ $this->drupalPost('node/' . $this->node->nid, $edit, t('Save'));
+ }
}