function MarkupNormalizerTest::testDelegatedSchemaDiscovery
Test the normalizer properly delegates schema discovery to its subject.
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ MarkupNormalizerTest.php, line 40
Class
- MarkupNormalizerTest
- @coversDefaultClass \Drupal\serialization\Normalizer\MarkupNormalizer @group serialization
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.