function CommentTestBase::setCommentSubject

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

Parameters

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

12 calls to CommentTestBase::setCommentSubject()

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php, line 195
Contains Drupal\comment\Tests\CommentTestBase.

Class

CommentTestBase
Provides setup and helper methods for comment tests.

Namespace

Drupal\comment\Tests

Code

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