You are here

function CommentModuleTestCase::set_comment_form in SimpleTest 6

Set comment form setting.

Parameters

boolean $enabled Form value.:

1 call to CommentModuleTestCase::set_comment_form()
CommentModuleTestCase::testFormOnPage in tests/comment_module.test
Test comment form on node page.

File

tests/comment_module.test, line 293

Class

CommentModuleTestCase

Code

function set_comment_form($enabled) {
  $this
    ->set_comment_settings('comment_form_location', $enabled ? '1' : '3', 'Comment controls ' . ($enabled ? 'enabled' : 'disabled') . '.');
}