function PrimitiveDataNormalizerTest::testNormalize

Tests normalize.

@legacy-covers ::normalize

Attributes

#[DataProvider('dataProviderPrimitiveData')]

File

core/modules/serialization/tests/src/Unit/Normalizer/PrimitiveDataNormalizerTest.php, line 73

Class

PrimitiveDataNormalizerTest
Tests Drupal\serialization\Normalizer\PrimitiveDataNormalizer.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public function testNormalize($primitive_data, $expected) : void {
  $this->assertSame($expected, $this->normalizer
    ->normalize($primitive_data));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.