function StringFieldRdfaTest::testStringFormatters

Same name in other branches
  1. 8.9.x 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 57

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,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.