You are here

public function RdfaAttributesTest::testProperty 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::testProperty()
  2. 10 core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php \Drupal\Tests\rdf\Kernel\RdfaAttributesTest::testProperty()

Test attribute creation for mappings which use 'property'.

File

core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php, line 24

Class

RdfaAttributesTest
Tests RDFa attribute generation from RDF mapping.

Namespace

Drupal\Tests\rdf\Kernel

Code

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