public function OffsetPageTest::parameterProvider in JSON:API 8.2
Data provider for testCreateFromQueryParameter.
File
- tests/
src/ Unit/ Query/ OffsetPageTest.php, line 48
Class
- OffsetPageTest
- @coversDefaultClass \Drupal\jsonapi\Query\OffsetPage @group jsonapi @group legacy
Namespace
Drupal\Tests\jsonapi\Unit\QueryCode
public function parameterProvider() {
return [
[
[
'offset' => 12,
'limit' => 20,
],
[
'offset' => 12,
'limit' => 20,
],
],
[
[
'offset' => 12,
'limit' => 60,
],
[
'offset' => 12,
'limit' => 50,
],
],
[
[
'offset' => 12,
],
[
'offset' => 12,
'limit' => 50,
],
],
[
[
'offset' => 0,
],
[
'offset' => 0,
'limit' => 50,
],
],
[
[],
[
'offset' => 0,
'limit' => 50,
],
],
];
}