function RdfaAttributesTest::testRel in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/rdf/src/Tests/RdfaAttributesTest.php \Drupal\rdf\Tests\RdfaAttributesTest::testRel()
Test attribute creation for mappings which use 'rel'.
File
- core/
modules/ rdf/ src/ Tests/ RdfaAttributesTest.php, line 109 - Contains \Drupal\rdf\Tests\RdfaAttributesTest.
Class
- RdfaAttributesTest
- Tests RDFa attribute generation from RDF mapping.
Namespace
Drupal\rdf\TestsCode
function testRel() {
$properties = array(
'sioc:has_creator',
'dc:creator',
);
$mapping = array(
'properties' => $properties,
'mapping_type' => 'rel',
);
$expected_attributes = array(
'rel' => $properties,
);
$this
->_testAttributes($expected_attributes, $mapping);
}