public function OffsetPageNormalizerTest::denormalizeProvider in JSON:API 8
Data provider for testGet.
File
- tests/
src/ Kernel/ Normalizer/ OffsetPageNormalizerTest.php, line 56
Class
- OffsetPageNormalizerTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\OffsetPageNormalizer @group jsonapi @group jsonapi_normalizers @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\NormalizerCode
public function denormalizeProvider() {
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,
],
],
];
}