function PagerPluginBaseTest::testGetItemsPerPage

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testGetItemsPerPage()
  2. 8.9.x core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testGetItemsPerPage()
  3. 10 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testGetItemsPerPage()

Tests the getItemsPerPage() method.

See also

\Drupal\views\Plugin\views\pager\PagerPluginBase::getItemsPerPage()

File

core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php, line 56

Class

PagerPluginBaseTest
@coversDefaultClass \Drupal\views\Plugin\views\pager\PagerPluginBase @group views

Namespace

Drupal\Tests\views\Unit\Plugin\pager

Code

public function testGetItemsPerPage() : void {
    $this->assertEquals(5, $this->pager
        ->getItemsPerPage());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.