function CommentTestBase::setCommentsPerPage

Sets the value specifying the default number of comments per page.

Parameters

integer $comments: Comments per page value.

5 calls to CommentTestBase::setCommentsPerPage()
CommentBlockTest::testRecentCommentBlock in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentBlockTest.php
Tests the recent comments block.
CommentInterfaceTest::testCommentInterface in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
Tests the comment interface.
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.
CommentPagerTest::testCommentPaging in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentPagerTest.php
Confirms comment paging works correctly with flat and threaded comments.

File

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

Class

CommentTestBase
Provides setup and helper methods for comment tests.

Namespace

Drupal\comment\Tests

Code

function setCommentsPerPage($number) {
  $this
    ->setCommentSettings('comment_default_per_page', $number, format_string('Number of comments per page set to @number.', array(
    '@number' => $number,
  )));
}