You are here

function RdfaAttributesTest::testProperty in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/rdf/src/Tests/RdfaAttributesTest.php \Drupal\rdf\Tests\RdfaAttributesTest::testProperty()

Test attribute creation for mappings which use 'property'.

File

core/modules/rdf/src/Tests/RdfaAttributesTest.php, line 29
Contains \Drupal\rdf\Tests\RdfaAttributesTest.

Class

RdfaAttributesTest
Tests RDFa attribute generation from RDF mapping.

Namespace

Drupal\rdf\Tests

Code

function testProperty() {
  $properties = array(
    'dc:title',
  );
  $mapping = array(
    'properties' => $properties,
  );
  $expected_attributes = array(
    'property' => $properties,
  );
  $this
    ->_testAttributes($expected_attributes, $mapping);
}