diff -u b/core/modules/field/src/Tests/Number/NumberFieldTest.php b/core/modules/field/src/Tests/Number/NumberFieldTest.php --- b/core/modules/field/src/Tests/Number/NumberFieldTest.php +++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php @@ -249,17 +249,17 @@ ), )) ->save(); - $the_value = '123'; + $integer_value = '123'; $this->drupalGet('entity_test/add'); $edit = array( - "{$field_name}[0][value]" => $the_value, + "{$field_name}[0][value]" => $integer_value, ); $this->drupalPostForm(NULL, $edit, t('Save')); preg_match('|entity_test/manage/(\d+)|', $this->url, $match); $id = $match[1]; $this->assertText(t('entity_test @id has been created.', array('@id' => $id)), 'Entity was created'); $this->drupalGet('entity_test/' . $id); - $this->assertFieldByXPath('//div[@content="' . $the_value . '"]', 'ThePrefix' . $the_value, 'The "content" attribute has been set to the value of the field, and the prefix is being displayed.'); + $this->assertFieldByXPath('//div[@content="' . $integer_value . '"]', 'ThePrefix' . $integer_value, 'The "content" attribute has been set to the value of the field, and the prefix is being displayed.'); } /**