diff --git a/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php b/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php index 5a85c48..5b84d0e 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php @@ -424,8 +424,9 @@ function testHiddenFields() { $this->assertFalse($this->xpath('//select[@id="edit-add-existing-field-field-name"]//option[@value=:field_name]', array(':field_name' => $field_name)), "The 're-use existing field' select respects field types 'no_ui' property."); // Remove the form display component to check the fallback label. - $entity_display = entity_get_form_display('node', $this->type, 'default'); - $entity_display->removeComponent($field_name)->save(); + entity_get_form_display('node', $this->type, 'default') + ->removeComponent($field_name) + ->save(); $this->drupalGet('admin/structure/types/manage/' . $this->type . '/fields/'); $this->assertLinkByHref(url('admin/structure/types/manage/' . $this->type . '/fields/node.' . $this->type . '.' . $field_name . '/widget-type'));