You are here

function CommentModuleTestCase::set_comment_subject in SimpleTest 6

Set comment subject setting.

Parameters

boolean $enabled Subject value.:

File

tests/comment_module.test, line 275

Class

CommentModuleTestCase

Code

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