1 comment.test CommentFieldsTest::testCommentFormat()

Tests that comment module works correctly with plain text format.

File

core/modules/comment/tests/comment.test, line 2076
Tests for the Comment module.

Class

CommentFieldsTest
Tests fields on comments.

Code

function testCommentFormat() {
  // Disable text processing for comments.
  $this->backdropLogin($this->admin_user);
  $edit = array('instance[settings][text_processing]' => 0);
  $this->backdropPost('admin/structure/types/manage/post/comment/fields/comment_body', $edit, t('Save settings'));

  // Post a comment without an explicit subject.
  $this->backdropLogin($this->web_user);
  $edit = array('comment_body[und][0][value]' => $this->randomName(8));
  $this->backdropPost('node/' . $this->node->nid, $edit, t('Save'));
}