function CommentHelperCase::setCommentsPerPage

Set the default number of comments per page.

Parameters

integer $comments: Comments per page value.

5 calls to CommentHelperCase::setCommentsPerPage()
CommentBlockFunctionalTest::testRecentCommentBlock in drupal/modules/comment/comment.test
Test the recent comments block.
CommentInterfaceTest::testCommentInterface in drupal/modules/comment/comment.test
Test comment interface.
CommentPagerTest::testCommentNewPageIndicator in drupal/modules/comment/comment.test
Test comment_new_page_count().
CommentPagerTest::testCommentOrderingThreading in drupal/modules/comment/comment.test
Test comment ordering and threading.
CommentPagerTest::testCommentPaging in drupal/modules/comment/comment.test
Confirm comment paging works correctly with flat and threaded comments.

File

drupal/modules/comment/comment.test, line 193
Tests for comment.module.

Class

CommentHelperCase
@file Tests for comment.module.

Code

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