public function RelationshipItemNormalizerValueTest::testRasterizeValue in JSON:API 8
@covers ::rasterizeValue @dataProvider rasterizeValueProvider
File
- tests/
src/ Unit/ Normalizer/ Value/ RelationshipItemNormalizerValueTest.php, line 22
Class
- RelationshipItemNormalizerValueTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\Value\RelationshipItemNormalizerValue @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\Normalizer\ValueCode
public function testRasterizeValue($values, $entity_type_id, $bundle, $expected) {
$object = new RelationshipItemNormalizerValue($values, new CacheableMetadata(), new ResourceType($entity_type_id, $bundle, NULL), NULL);
$this
->assertEquals($expected, $object
->rasterizeValue());
}