diff --git a/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php b/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php index 19ef644..95d84d5 100644 --- a/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php +++ b/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php @@ -65,7 +65,7 @@ public function testFieldAdminHandler() { $this->drupalPostForm($bundle_path . '/fields/add-field', array( 'label' => 'Test label', 'field_name' => 'test', - 'new_storage_type' => 'entity_reference', + 'new_storage_type' => 'field_ui:entity_reference:_other', ), t('Save and continue')); // Node should be selected by default. @@ -239,7 +239,7 @@ public function createEntityReferenceField($target_type, $bundle = NULL) { $field_edit['field[settings][handler_settings][target_bundles][' . $bundle . ']'] = TRUE; } - $this->fieldUIAddNewField($bundle_path, $field_name, NULL, 'entity_reference', $storage_edit, $field_edit); + $this->fieldUIAddNewField($bundle_path, $field_name, NULL, 'field_ui:entity_reference:_other', $storage_edit, $field_edit); // Returns the generated field name. return $field_name; diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php index 728ad9f..e735bdb 100644 --- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php @@ -557,7 +557,7 @@ function testHiddenFields() { // Check that non-configurable fields are not available. $field_types = \Drupal::service('plugin.manager.field.field_type')->getDefinitions(); foreach ($field_types as $field_type => $definition) { - if (empty($definition['no_ui'])) { + if (empty($definition['no_ui']) && !is_subclass_of($definition['class'], '\Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface')) { $this->assertTrue($this->xpath('//select[@id="edit-new-storage-type"]//option[@value=:field_type]', array(':field_type' => $field_type)), String::format('Configurable field type @field_type is available.', array('@field_type' => $field_type))); } else {