You are here

public function RdfaAttributesTest::testRel in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php \Drupal\Tests\rdf\Kernel\RdfaAttributesTest::testRel()

Test 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\Kernel

Code

public function testRel() {
  $properties = [
    'sioc:has_creator',
    'dc:creator',
  ];
  $mapping = [
    'properties' => $properties,
    'mapping_type' => 'rel',
  ];
  $expected_attributes = [
    'rel' => $properties,
  ];
  $this
    ->_testAttributes($expected_attributes, $mapping);
}