diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/FieldRdfaTestBase.php b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/FieldRdfaTestBase.php
index 56e2aa5..fbdad02 100644
--- a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/FieldRdfaTestBase.php
+++ b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/FieldRdfaTestBase.php
@@ -58,8 +58,10 @@ public function setUp() {
   /**
    * Helper function to test the formatter's RDFa.
    *
-   * @param string $formatter
-   *   The machine name of the formatter to test.
+   * @param array $formatter
+   *   An associative array describing the formatter to test and its settings containing:
+   *   - type: The machine name of the field formatter to test.
+   *   - settings: The settings of the field formatter to test.
    * @param string $property
    *   The property that should be found.
    * @param string $value
@@ -71,7 +73,7 @@ protected function assertFormatterRdfa($formatter, $property, $value, $object_ty
     // The field formatter will be rendered inside the entity. Set the field
     // formatter in the entity display options before rendering the entity.
     entity_get_display('entity_test', 'entity_test', 'default')
-      ->setComponent($this->fieldName, array('type' => $formatter))
+      ->setComponent($this->fieldName, $formatter)
       ->save();
     $build = entity_view($this->entity, 'default');
     $output = drupal_render($build);
@@ -81,7 +83,7 @@ protected function assertFormatterRdfa($formatter, $property, $value, $object_ty
       'type' => $object_type,
       'value' => $value,
     );
-    $this->assertTrue($graph->hasProperty($this->uri, $property, $expected_value), "Formatter $formatter exposes data correctly for {$this->fieldType} fields.");
+    $this->assertTrue($graph->hasProperty($this->uri, $property, $expected_value), "Formatter {$formatter['type']} exposes data correctly for {$this->fieldType} fields.");
   }
 
   /**
diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php
index b350b95..708bca2 100644
--- a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php
+++ b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/TextFieldRdfaTest.php
@@ -66,14 +66,14 @@ public function setUp() {
    * Tests the default formatter.
    */
   public function testDefaultFormatter() {
-    $this->assertFormatterRdfa('text_default', 'http://schema.org/text', $this->testValue);
+    $this->assertFormatterRdfa(array('type'=>'text_default'), 'http://schema.org/text', $this->testValue);
   }
 
   /**
    * Tests the plain formatter.
    */
   public function testPlainFormatter() {
-    $this->assertFormatterRdfa('text_plain', 'http://schema.org/text', $this->testValue);
+    $this->assertFormatterRdfa(array('type'=>'text_plain'), 'http://schema.org/text', $this->testValue);
   }
 
   /**
@@ -82,7 +82,7 @@ public function testPlainFormatter() {
    * @todo Check for the summary mapping.
    */
   public function testSummaryFormatter() {
-    $this->assertFormatterRdfa('text_summary_or_trimmed', 'http://schema.org/text', $this->testValue);
+    $this->assertFormatterRdfa(array('type'=>'text_summary_or_trimmed'), 'http://schema.org/text', $this->testValue);
   }
 
   /**
@@ -91,6 +91,6 @@ public function testSummaryFormatter() {
    * @todo Check for the summary mapping.
    */
   public function testTrimmedFormatter() {
-    $this->assertFormatterRdfa('text_trimmed', 'http://schema.org/text', $this->testValue);
+    $this->assertFormatterRdfa(array('type'=>'text_trimmed'), 'http://schema.org/text', $this->testValue);
   }
 }
