public function RdfaAttributesTest::testRel in Drupal 9
Same name and namespace in other branches
- 8 core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php \Drupal\Tests\rdf\Kernel\RdfaAttributesTest::testRel()
Tests attribute creation for mappings which use 'rel'.
File
- core/
modules/ rdf/ tests/ src/ Kernel/ RdfaAttributesTest.php, line 103
Class
- RdfaAttributesTest
- Tests RDFa attribute generation from RDF mapping.
Namespace
Drupal\Tests\rdf\KernelCode
public function testRel() {
$properties = [
'sioc:has_creator',
'dc:creator',
];
$mapping = [
'properties' => $properties,
'mapping_type' => 'rel',
];
$expected_attributes = [
'rel' => $properties,
];
$this
->_testAttributes($expected_attributes, $mapping);
}