public function FieldItemNormalizerValueTest::rasterizeValueProvider in JSON:API 8
Provider for testRasterizeValue.
File
- tests/
src/ Unit/ Normalizer/ Value/ FieldItemNormalizerValueTest.php, line 29
Class
- FieldItemNormalizerValueTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\Value\FieldItemNormalizerValue @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\Normalizer\ValueCode
public function rasterizeValueProvider() {
return [
[
[
'value' => 1,
],
1,
],
[
[
'value' => 1,
'safe_value' => 1,
],
[
'value' => 1,
'safe_value' => 1,
],
],
[
[],
[],
],
[
[
NULL,
],
NULL,
],
[
[
'lorem' => [
'ipsum' => [
'dolor' => 'sid',
'amet' => 'ra',
],
],
],
[
'ipsum' => [
'dolor' => 'sid',
'amet' => 'ra',
],
],
],
];
}