diff --git a/core/modules/rdf/src/Tests/Field/FieldRdfaTestBase.php b/core/modules/rdf/src/Tests/Field/FieldRdfaTestBase.php index 8e4b50e..989ebf8 100644 --- a/core/modules/rdf/src/Tests/Field/FieldRdfaTestBase.php +++ b/core/modules/rdf/src/Tests/Field/FieldRdfaTestBase.php @@ -91,6 +91,7 @@ protected function assertFormatterRdfa($formatter, $property, $expected_rdf_valu $build = entity_view($this->entity, 'default'); $output = drupal_render($build); $graph = new \EasyRdf_Graph($this->uri, $output, 'rdfa'); + $this->setRawContent($output); // If verbose debugging is turned on, display the HTML and parsed RDF // in the results. diff --git a/core/modules/rdf/src/Tests/Field/NumberFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/NumberFieldRdfaTest.php index c9246d0..a67aaea 100644 --- a/core/modules/rdf/src/Tests/Field/NumberFieldRdfaTest.php +++ b/core/modules/rdf/src/Tests/Field/NumberFieldRdfaTest.php @@ -64,6 +64,13 @@ public function testFloatFormatter() { $this->createTestField(); $this->createTestEntity(); $this->assertFormatterRdfa(array('type' => $this->fieldType), 'http://schema.org/baseSalary', array('value' => $this->testValue)); + + // Test that the content attribute is not created. + $xpath = "/div[@class='field-name-field-test']/div[@class='field-item']"; // and @content + //$xpath = $this->buildXPathQuery($xpath, $arguments); + $result = $this->elements->xpath($xpath); + debug($result); + //$this->assertFieldByXpath($xpath); } /** @@ -141,7 +148,7 @@ public function testDecimalFormatterWithSettings() { } /** - * Create the RDF mapping for the field. + * Creates the RDF mapping for the field. */ protected function createTestEntity() { // Add the mapping.