public function StringFieldRdfaTest::testStringFormatters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/rdf/src/Tests/Field/StringFieldRdfaTest.php \Drupal\rdf\Tests\Field\StringFieldRdfaTest::testStringFormatters()
Tests string formatters.
File
- core/
modules/ rdf/ src/ Tests/ Field/ StringFieldRdfaTest.php, line 55 - Contains \Drupal\rdf\Tests\Field\StringFieldRdfaTest.
Class
- StringFieldRdfaTest
- Tests RDFa output by text field formatters.
Namespace
Drupal\rdf\Tests\FieldCode
public function testStringFormatters() {
// Tests the string formatter.
$this
->assertFormatterRdfa(array(
'type' => 'string',
), 'http://schema.org/text', array(
'value' => $this->testValue,
));
}