You are here

public function PrimitiveDataNormalizerTest::testNormalize in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/serialization/tests/src/Unit/Normalizer/PrimitiveDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\PrimitiveDataNormalizerTest::testNormalize()
  2. 10 core/modules/serialization/tests/src/Unit/Normalizer/PrimitiveDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\PrimitiveDataNormalizerTest::testNormalize()

@covers ::normalize @dataProvider dataProviderPrimitiveData

File

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

Class

PrimitiveDataNormalizerTest
@coversDefaultClass \Drupal\serialization\Normalizer\PrimitiveDataNormalizer @group serialization

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

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