function RdfaAttributesTest::testProperty
Same name in other branches
- 8.9.x core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php \Drupal\Tests\rdf\Kernel\RdfaAttributesTest::testProperty()
Tests attribute creation for mappings which use 'property'.
File
-
core/
modules/ rdf/ tests/ src/ Kernel/ RdfaAttributesTest.php, line 25
Class
- RdfaAttributesTest
- Tests RDFa attribute generation from RDF mapping.
Namespace
Drupal\Tests\rdf\KernelCode
public function testProperty() {
$properties = [
'dc:title',
];
$mapping = [
'properties' => $properties,
];
$expected_attributes = [
'property' => $properties,
];
$this->_testAttributes($expected_attributes, $mapping);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.