You are here

public function PagerPluginBaseTest::testGetOffset in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testGetOffset()
  2. 9 core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\pager\PagerPluginBaseTest::testGetOffset()

Tests the getOffset() method.

See also

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

File

core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php, line 73
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\pager

Code

public function testGetOffset() {
  $this
    ->assertEquals(1, $this->pager
    ->getOffset());
}