You are here

public function DateTimeFieldRdfaTest::testDefaultFormatter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php \Drupal\rdf\Tests\Field\DateTimeFieldRdfaTest::testDefaultFormatter()

Tests the default formatter.

File

core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php, line 52
Contains \Drupal\rdf\Tests\Field\DateTimeFieldRdfaTest.

Class

DateTimeFieldRdfaTest
Tests RDFa output by datetime field formatters.

Namespace

Drupal\rdf\Tests\Field

Code

public function testDefaultFormatter() {
  $this
    ->assertFormatterRdfa(array(
    'type' => 'datetime_default',
  ), 'http://schema.org/dateCreated', array(
    'value' => $this->testValue . 'Z',
    'type' => 'literal',
    'datatype' => 'http://www.w3.org/2001/XMLSchema#dateTime',
  ));
}