diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/EntityReferenceRdfaTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/EntityReferenceRdfaTest.php index a521383..24aac79 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/EntityReferenceRdfaTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/EntityReferenceRdfaTest.php @@ -55,6 +55,12 @@ public function setUp() { 'entity_type' => 'entity_test', 'field_name' => $this->fieldName, 'bundle' => 'entity_test', + 'settings' => array( + 'handler' => 'default', + 'handler_settings' => array( + 'target_bundles' => array('entity_test' => 'entity_test'), + ), + ), ))->save(); $this->entity = entity_create('entity_test', array( @@ -86,11 +92,11 @@ public function setUp() { * Tests all the entity reference formatters. */ public function testAllFormatters() { + $entity_uri = $this->getAbsoluteUri($this->target_entity); // Tests the label formatter. - $this->assertFormatterRdfa(array('type' => 'entity_reference_label'), 'http://schema.org/knows', array('value' => $this->getAbsoluteUri($this->target_entity), 'type' => 'uri')); + $this->assertFormatterRdfa(array('type' => 'entity_reference_label'), 'http://schema.org/knows', array('value' => $entity_uri, 'type' => 'uri')); // Tests the entity formatter. - //$entity_uri = $this->getAbsoluteUri($this->entity); - //$this->assertFormatterRdfa(array('type'=>'taxonomy_term_reference_link'), 'http://schema.org/knows', array('value' => $entity_uri, 'type' => 'uri')); + $this->assertFormatterRdfa(array('type'=>'entity_reference_entity_view'), 'http://schema.org/knows', array('value' => $entity_uri, 'type' => 'uri')); } }