public function PagerPluginBaseTest::testSetOffset 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::testSetOffset()
Tests the setOffset() method.
See also
\Drupal\views\Plugin\views\pager\PagerPluginBase::setOffset()
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ pager/ PagerPluginBaseTest.php, line 82 - 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 testSetOffset() {
$this->pager
->setOffset(2);
$this
->assertEquals(2, $this->pager
->getOffset());
}