function CommentTestBase::setCommentForm

Sets the value governing whether the comment form is on its own page.

Parameters

boolean $enabled: TRUE if the comment form should be displayed on the same page as the comments; FALSE if it should be displayed on its own page.

10 calls to CommentTestBase::setCommentForm()
CommentAttributesTest::setUp in drupal/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php
Sets up a Drupal site for running functional and integration tests.
CommentInterfaceTest::testCommentInterface in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
Tests the comment interface.
CommentNodeAccessTest::testThreadedCommentView in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentNodeAccessTest.php
Test that threaded comments can be viewed.
CommentPagerTest::testCommentNewPageIndicator in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentPagerTest.php
Tests comment_new_page_count().
CommentPagerTest::testCommentOrderingThreading in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentPagerTest.php
Tests comment ordering and threading.

... See full list

File

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

Class

CommentTestBase
Provides setup and helper methods for comment tests.

Namespace

Drupal\comment\Tests

Code

function setCommentForm($enabled) {
  $this
    ->setCommentSettings('comment_form_location', $enabled ? COMMENT_FORM_BELOW : COMMENT_FORM_SEPARATE_PAGE, 'Comment controls ' . ($enabled ? 'enabled' : 'disabled') . '.');
}