function TypedDataNormalizerTest::testNormalize
Same name and namespace in other branches
- 8.9.x core/modules/serialization/tests/src/Unit/Normalizer/TypedDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TypedDataNormalizerTest::testNormalize()
- 10 core/modules/serialization/tests/src/Unit/Normalizer/TypedDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TypedDataNormalizerTest::testNormalize()
- 11.x core/modules/serialization/tests/src/Unit/Normalizer/TypedDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TypedDataNormalizerTest::testNormalize()
Tests the normalize() method.
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ TypedDataNormalizerTest.php, line 48
Class
- TypedDataNormalizerTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21serialization%21src%21Normalizer%21TypedDataNormalizer.php/class/TypedDataNormalizer/9" title="Converts typed data objects to arrays." class="local">\Drupal\serialization\Normalizer\TypedDataNormalizer</a> @group serialization
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function testNormalize() {
$this->typedData
->expects($this->once())
->method('getValue')
->willReturn('test');
$this->assertEquals('test', $this->normalizer
->normalize($this->typedData));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.