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()

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php, line 252
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,
  )));
}