function PagerPluginBaseTest::testSetOffset

Same name in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testSetOffset()
  2. 10 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testSetOffset()
  3. 11.x 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 85

Class

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

Namespace

Drupal\Tests\views\Unit\Plugin\pager

Code

public function testSetOffset() {
    $this->pager
        ->setOffset(2);
    $this->assertEquals(2, $this->pager
        ->getOffset());
}

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