function OffsetPageTest::testCreateFromQueryParameter
Tests create from query parameter.
@legacy-covers ::createFromQueryParameter
Attributes
#[DataProvider('parameterProvider')]
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ Query/ OffsetPageTest.php, line 45
Class
Namespace
Drupal\Tests\jsonapi\Unit\QueryCode
public function testCreateFromQueryParameter($original, $expected) : void {
$actual = OffsetPage::createFromQueryParameter($original);
$this->assertEquals($expected['offset'], $actual->getOffset());
$this->assertEquals($expected['limit'], $actual->getSize());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.