public function RelationshipItemNormalizerValueTest::rasterizeValueProvider in JSON:API 8
Data provider for testRasterizeValue.
File
- tests/
src/ Unit/ Normalizer/ Value/ RelationshipItemNormalizerValueTest.php, line 30
Class
- RelationshipItemNormalizerValueTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\Value\RelationshipItemNormalizerValue @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\Normalizer\ValueCode
public function rasterizeValueProvider() {
return [
[
[
'target_id' => 1,
],
'node',
'article',
[
'type' => 'node--article',
'id' => 1,
],
],
[
[
'value' => 1,
],
'node',
'page',
[
'type' => 'node--page',
'id' => 1,
],
],
[
[
1,
],
'node',
'foo',
[
'type' => 'node--foo',
'id' => 1,
],
],
[
[],
'node',
'bar',
[],
],
[
[
NULL,
],
'node',
'baz',
NULL,
],
];
}