function CommentHelperCase::setCommentSubject

7.x comment.test CommentHelperCase::setCommentSubject($enabled)

Set comment subject setting.

Parameters

boolean $enabled: Subject value.

12 calls to CommentHelperCase::setCommentSubject()
CommentContentRebuild::testCommentRebuild in drupal-7.x/modules/comment/comment.test
Test to ensure that the comment's content array is rebuilt for every call to comment_view().
CommentInterfaceTest::testCommentInterface in drupal-7.x/modules/comment/comment.test
Test comment interface.
CommentInterfaceTest::testCommentNodeCommentStatistics in drupal-7.x/modules/comment/comment.test
Tests the node comment statistics.
CommentNodeAccessTest::testThreadedCommentView in drupal-7.x/modules/comment/comment.test
Test that threaded comments can be viewed.
CommentPagerTest::testCommentNewPageIndicator in drupal-7.x/modules/comment/comment.test
Test comment_new_page_count().

... See full list

File

drupal-7.x/modules/comment/comment.test, line 134
Tests for comment.module.

Class

CommentHelperCase

Code

function setCommentSubject($enabled) {
  $this->setCommentSettings('comment_subject_field', ($enabled ? '1' : '0'), 'Comment subject ' . ($enabled ? 'enabled' : 'disabled') . '.');
}