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

Sets the value governing whether the subject field should be enabled.

Parameters

boolean $enabled: Boolean specifying whether the subject field should be enabled.

File

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

Class

CommentHelperCase

Code

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