public function OffsetPageTest::testCreateFromQueryParameter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::testCreateFromQueryParameter()
- 9 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::testCreateFromQueryParameter()
@covers ::createFromQueryParameter @dataProvider parameterProvider
File
- core/
modules/ jsonapi/ tests/ src/ Unit/ Query/ OffsetPageTest.php, line 38
Class
- OffsetPageTest
- @coversDefaultClass \Drupal\jsonapi\Query\OffsetPage @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\QueryCode
public function testCreateFromQueryParameter($original, $expected) {
$actual = OffsetPage::createFromQueryParameter($original);
$this
->assertEquals($expected['offset'], $actual
->getOffset());
$this
->assertEquals($expected['limit'], $actual
->getSize());
}