summaryrefslogtreecommitdiffstats
path: root/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionSortTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionSortTest.php')
-rw-r--r--core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionSortTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionSortTest.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionSortTest.php
index 558c1ce..b44c54d 100644
--- a/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionSortTest.php
+++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionSortTest.php
@@ -121,7 +121,7 @@ class EntityReferenceSelectionSortTest extends WebTestBase {
$normal_user = $this->drupalCreateUser(array('access content'));
$GLOBALS['user'] = $normal_user;
- $handler = entity_reference_get_selection_handler($instance);
+ $handler = $this->container->get('plugin.manager.entity_reference.selection')->getSelectionHandler($instance);
// Not only assert the result, but make sure the keys are sorted as
// expected.
@@ -137,7 +137,7 @@ class EntityReferenceSelectionSortTest extends WebTestBase {
'field' => 'nid',
'direction' => 'ASC',
);
- $handler = entity_reference_get_selection_handler($instance);
+ $handler = $this->container->get('plugin.manager.entity_reference.selection')->getSelectionHandler($instance);
$result = $handler->getReferenceableEntities();
$expected_result = array(
$nodes['published1']->id() => $node_labels['published1'],