function MarkupNormalizerTest::testDelegatedSchemaDiscovery
Same name and namespace in other branches
- 11.x core/modules/serialization/tests/src/Unit/Normalizer/MarkupNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\MarkupNormalizerTest::testDelegatedSchemaDiscovery()
Test the normalizer properly delegates schema discovery to its subject.
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ MarkupNormalizerTest.php, line 43
Class
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function testDelegatedSchemaDiscovery() : void {
$schema = $this->normalizer
->getNormalizationSchema(new Attribute([
'data-test' => 'testing',
]));
$this->assertEquals('Rendered HTML element attributes', $schema['description']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.