diff --git a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php index eadf740..8a8ba7d 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php @@ -93,9 +93,9 @@ public function testAutocompleteOutput() { // Enable the display of the 'type' field so we can test that the output // does not contain only the entity label. - $fields = $view->displayHandlers->get('default')->getOption('fields'); + $fields = $view->displayHandlers->get('entity_reference_1')->getOption('fields'); $fields['type']['exclude'] = FALSE; - $view->displayHandlers->get('default')->setOption('fields', $fields); + $view->displayHandlers->get('entity_reference_1')->setOption('fields', $fields); $view->save(); // Prepare the selection settings key needed by the entity reference