You are here

public function FieldItemNormalizerValueTest::testRasterizeValue in JSON:API 8

@covers ::rasterizeValue @dataProvider rasterizeValueProvider

File

tests/src/Unit/Normalizer/Value/FieldItemNormalizerValueTest.php, line 21

Class

FieldItemNormalizerValueTest
@coversDefaultClass \Drupal\jsonapi\Normalizer\Value\FieldItemNormalizerValue @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\Normalizer\Value

Code

public function testRasterizeValue($values, $expected) {
  $object = new FieldItemNormalizerValue($values, new CacheableMetadata());
  $this
    ->assertEquals($expected, $object
    ->rasterizeValue());
}