function CommentModuleTestCase::set_comment_preview in SimpleTest 6
Set comment preview setting.
Parameters
boolean $required Preview value.:
File
- tests/
comment_module.test, line 284
Class
Code
function set_comment_preview($required) {
$this
->set_comment_settings('comment_preview', $required ? '1' : '0', 'Comment preview ' . ($required ? 'required' : 'optional') . '.');
}