function DateTimeFieldRdfaTest::testDefaultFormatter
Same name in other branches
- 9 core/modules/rdf/tests/src/Kernel/Field/DateTimeFieldRdfaTest.php \Drupal\Tests\rdf\Kernel\Field\DateTimeFieldRdfaTest::testDefaultFormatter()
Tests the default formatter.
File
-
core/
modules/ rdf/ tests/ src/ Kernel/ Field/ DateTimeFieldRdfaTest.php, line 50
Class
- DateTimeFieldRdfaTest
- Tests RDFa output by datetime field formatters.
Namespace
Drupal\Tests\rdf\Kernel\FieldCode
public function testDefaultFormatter() {
$this->assertFormatterRdfa([
'type' => 'datetime_default',
], 'http://schema.org/dateCreated', [
'value' => $this->testValue . 'Z',
'type' => 'literal',
'datatype' => 'http://www.w3.org/2001/XMLSchema#dateTime',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.