diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php index 2c1e40f..10bf706 100644 --- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php +++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php @@ -170,12 +170,12 @@ function testFormatterUI() { $this->drupalPostAjaxForm(NULL, $edit, "field_test_plugin_settings_update"); // When a module providing third-party settings to a formatter (or widget) - // is uninstalled, the formatter remain enabled but the provided settings, + // is uninstalled, the formatter remains enabled but the provided settings, // together with the corresponding form elements, are removed from the // display component. \Drupal::service('module_installer')->uninstall(array('field_third_party_test')); - // Ensure the button is still there after the module as been disabled. + // Ensure the button is still there after the module has been disabled. $this->drupalGet($manage_display); $this->assertResponse(200); $this->assertFieldByName('field_test_settings_edit'); @@ -183,7 +183,7 @@ function testFormatterUI() { // Ensure that third-party form elements are not present anymore. $this->drupalPostAjaxForm(NULL, array(), 'field_test_settings_edit'); $fieldname = 'fields[field_test][settings_edit_form][third_party_settings][field_third_party_test][field_test_field_formatter_third_party_settings_form]'; - $this->assertNoField($fieldname, 'The field added in hook_field_formatter_third_party_settings_form() is present on the settings form.'); + $this->assertNoField($fieldname); // Ensure that third-party settings were removed from the formatter. $display = EntityViewDisplay::load("node.{$this->type}.default");