public function DateTimeFieldRdfaTest::testDefaultFormatter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/rdf/tests/src/Kernel/Field/DateTimeFieldRdfaTest.php \Drupal\Tests\rdf\Kernel\Field\DateTimeFieldRdfaTest::testDefaultFormatter()
- 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',
]);
}