public function OffsetPageTest::parameterProvider in Drupal 8
Same name and namespace in other branches
- 9 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::parameterProvider()
Data provider for testCreateFromQueryParameter.
File
- core/
modules/ jsonapi/ tests/ src/ Unit/ Query/ OffsetPageTest.php, line 47
Class
- OffsetPageTest
- @coversDefaultClass \Drupal\jsonapi\Query\OffsetPage @group jsonapi
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,
],
],
];
}