You are here

public function StringFieldRdfaTest::testStringFormatters in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/rdf/tests/src/Kernel/Field/StringFieldRdfaTest.php \Drupal\Tests\rdf\Kernel\Field\StringFieldRdfaTest::testStringFormatters()

Tests string formatters.

File

core/modules/rdf/tests/src/Kernel/Field/StringFieldRdfaTest.php, line 53

Class

StringFieldRdfaTest
Tests RDFa output by text field formatters.

Namespace

Drupal\Tests\rdf\Kernel\Field

Code

public function testStringFormatters() {

  // Tests the string formatter.
  $this
    ->assertFormatterRdfa([
    'type' => 'string',
  ], 'http://schema.org/text', [
    'value' => $this->testValue,
  ]);
}