function CommentHelperCase::setCommentSubject

Set comment subject setting.

Parameters

boolean $enabled: Subject value.

12 calls to CommentHelperCase::setCommentSubject()
CommentContentRebuild::testCommentRebuild in drupal/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/modules/comment/comment.test
Test comment interface.
CommentInterfaceTest::testCommentNodeCommentStatistics in drupal/modules/comment/comment.test
Tests the node comment statistics.
CommentNodeAccessTest::testThreadedCommentView in drupal/modules/comment/comment.test
Test that threaded comments can be viewed.
CommentPagerTest::testCommentNewPageIndicator in drupal/modules/comment/comment.test
Test comment_new_page_count().

... See full list

File

drupal/modules/comment/comment.test, line 140
Tests for comment.module.

Class

CommentHelperCase
@file Tests for comment.module.

Code

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