diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/NumberFieldRdfaTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/NumberFieldRdfaTest.php index 6367d20..a6d18a6 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/Field/NumberFieldRdfaTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/Field/NumberFieldRdfaTest.php @@ -14,8 +14,15 @@ class NumberFieldRdfaTest extends FieldRdfaTestBase { /** - * {@inheritdoc} - */ + * The 'value' property value for testing. + * + * @var string + */ + protected $testValue = 'test_text_value'; + + /** + * {@inheritdoc} + */ public static $modules = array('number'); public static function getInfo() { @@ -30,30 +37,30 @@ public static function getInfo() { * Tests the integer formatter. */ public function testIntegerFormatter() { - $this->fieldType = 'number_integer'; + $this->fieldType = 'integer'; $this->testValue = 3; $this->createMapping(); - $this->assertFormatterRdfa($this->fieldType, 'http://schema.org/baseSalary', $this->testValue); + $this->assertFormatterRdfa(array('type' => $this->fieldType), 'http://schema.org/baseSalary', array('value' => $this->testValue)); } /** * Tests the decimal formatter. */ public function testDecimalFormatter() { - $this->fieldType = 'number_decimal'; + $this->fieldType = 'decimal'; $this->testValue = 3.33; $this->createMapping(); - $this->assertFormatterRdfa($this->fieldType, 'http://schema.org/baseSalary', $this->testValue); + $this->assertFormatterRdfa(array('type' => $this->fieldType), 'http://schema.org/baseSalary', array('value' => $this->testValue)); } /** * Tests the float formatter. */ public function testFloatFormatter() { - $this->fieldType = 'number_float'; + $this->fieldType = 'float'; $this->testValue = 3.33; $this->createMapping(); - $this->assertFormatterRdfa($this->fieldType, 'http://schema.org/baseSalary', $this->testValue); + $this->assertFormatterRdfa(array('type' => $this->fieldType), 'http://schema.org/baseSalary', array('value' => $this->testValue)); } /**