1 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

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

Class

CommentHelperCase

Code

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