You are here

public function FieldRdfaDatatypeCallbackTest::testDefaultFormatter in Zircon Profile 8.0

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

Tests the default formatter.

File

core/modules/rdf/src/Tests/Field/FieldRdfaDatatypeCallbackTest.php, line 54
Contains \Drupal\rdf\Tests\Field\FieldRdfaDatatypeCallbackTest.

Class

FieldRdfaDatatypeCallbackTest
Tests the RDFa output of a text field formatter with a datatype callback.

Namespace

Drupal\rdf\Tests\Field

Code

public function testDefaultFormatter() {

  // Expected value is the output of the datatype callback, not the raw value.
  $this
    ->assertFormatterRdfa(array(
    'type' => 'text_default',
  ), 'http://schema.org/interactionCount', array(
    'value' => 'foo' . $this->testValue,
  ));
}