public function PagerPluginBaseTest::testSetItemsPerPage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testSetItemsPerPage()
- 10 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testSetItemsPerPage()
Tests the setItemsPerPage() method.
See also
\Drupal\views\Plugin\views\pager\PagerPluginBase::setItemsPerPage()
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ pager/ PagerPluginBaseTest.php, line 63 - Contains \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest.
Class
- PagerPluginBaseTest
- @coversDefaultClass \Drupal\views\Plugin\views\pager\PagerPluginBase @group views
Namespace
Drupal\Tests\views\Unit\Plugin\pagerCode
public function testSetItemsPerPage() {
$this->pager
->setItemsPerPage(6);
$this
->assertEquals(6, $this->pager
->getItemsPerPage());
}