function CommentHelperCase::setCommentsPerPage

Set the default number of comments per page.

Parameters

integer $comments: Comments per page value.

10 calls to CommentHelperCase::setCommentsPerPage()
CommentBlockFunctionalTest::testRecentCommentBlock in drupal-7.x/modules/comment/comment.test
Test the recent comments block.
CommentBlockFunctionalTest::testRecentCommentBlock in drupal-7.x/modules/comment/comment.test
Test the recent comments block.
CommentInterfaceTest::testCommentInterface in drupal-7.x/modules/comment/comment.test
Test comment interface.
CommentInterfaceTest::testCommentInterface in drupal-7.x/modules/comment/comment.test
Test comment interface.
CommentPagerTest::testCommentNewPageIndicator in drupal-7.x/modules/comment/comment.test
Test comment_new_page_count().

... See full list

Archivo

drupal-7.x/modules/comment/comment.test, line 187
Tests for comment.module.

Class

CommentHelperCase

Código

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