diff --git a/core/modules/views/src/Tests/Update/FieldHandlersUpdateTest.php b/core/modules/views/src/Tests/Update/FieldHandlersUpdateTest.php index e83265f..02ccf03 100644 --- a/core/modules/views/src/Tests/Update/FieldHandlersUpdateTest.php +++ b/core/modules/views/src/Tests/Update/FieldHandlersUpdateTest.php @@ -37,22 +37,15 @@ public function testUpdateHookN() { $this->runUpdates(); // Load and initialize our test view. - $view = Views::getView('update_test'); + $view = Views::getView('test_duplicate_field_handlers'); $view->initHandlers(); // Extract the field from the test view that was updated. /** @var \Drupal\views\Plugin\views\field\Field $field */ $created = $view->field['nid']; - // Get the expected base table name for the entity. - $test_entity = ""; - $entity_manager = \Drupal::service('entity.manager'); - $base_table = ''; - foreach ($entity_manager->getDefinitions() as $entity_type_name => $entity) { - if ($entity_type_name == $test_entity) { - $base_table = $entity->getBaseTable(); - } - } + // The expected base table name for the entity. + $base_table = 'node_field_data'; // Check that the field is using the expected base table. $options = $created->options;