createTestField(); // Add the mapping. $mapping = rdf_get_mapping('entity_test', 'entity_test'); $mapping->setFieldMapping($this->fieldName, [ 'properties' => ['schema:text'], ])->save(); // Set up test entity. $this->entity = EntityTest::create(); $this->entity->{$this->fieldName}->value = $this->testValue; $this->entity->{$this->fieldName}->summary = $this->testSummary; } /** * Tests string formatters. */ public function testStringFormatters() { // Tests the string formatter. $this->assertFormatterRdfa(['type' => 'string'], 'http://schema.org/text', ['value' => $this->testValue]); } }