diff --git a/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php b/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php index db33cd4..ad947e4 100644 --- a/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php +++ b/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php @@ -170,7 +170,7 @@ function testNumberIntegerField() { ); $this->drupalPost(NULL, $edit, t('Save')); - //Add prefix and suffix for the newly-created field + // Add prefix and suffix for the newly-created field. $prefix = $this->randomName(); $suffix = $this->randomName(); $edit = array( @@ -179,7 +179,7 @@ function testNumberIntegerField() { ); $this->drupalPost("admin/structure/types/manage/$type/fields/node.$type.field_$field_name", $edit, t('Save settings')); - // Set the formatter to "number_integer" and to "unformatted", and just + // Set the formatter to "unformatted" and to "number_integer", and just // check that the settings summary does not generate warnings. $this->drupalGet("admin/structure/types/manage/$type/display"); $edit = array( @@ -191,12 +191,10 @@ function testNumberIntegerField() { ); $this->drupalPost(NULL, $edit, t('Save')); - // Set display prefix and suffix properties to true. + // Configure the formatter to display the prefix and suffix. $this->drupalPostAJAX(NULL, array(), "field_${field_name}_settings_edit"); - $edit = array("fields[field_${field_name}][settings_edit_form][settings][prefix_suffix]" => TRUE); $this->drupalPostAJAX(NULL, $edit, "field_${field_name}_plugin_settings_update"); - $this->drupalPost(NULL, array(), t('Save')); // Create new content and check that prefix and suffix are shown.