You are here

function RdfaAttributesTest::testRel in Zircon Profile 8

Same name and namespace in other branches
  1. 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\Tests

Code

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);
}