Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / Entity / EntityReferenceSelection / EntityReferenceSelectionSortTest.php
index eb13d0e491267e529007379c5e7aa906ee984c41..b2c72b99d92c57c8b2888bc96b7d300837cb9063 100644 (file)
@@ -96,13 +96,11 @@ class EntityReferenceSelectionSortTest extends EntityKernelTestBase {
     $selection_options = [
       'target_type' => 'node',
       'handler' => 'default',
-      'handler_settings' => [
-        'target_bundles' => NULL,
-        // Add sorting.
-        'sort' => [
-          'field' => 'field_text.value',
-          'direction' => 'DESC',
-        ],
+      'target_bundles' => NULL,
+      // Add sorting.
+      'sort' => [
+        'field' => 'field_text.value',
+        'direction' => 'DESC',
       ],
     ];
     $handler = $this->container->get('plugin.manager.entity_reference_selection')->getInstance($selection_options);
@@ -117,7 +115,7 @@ class EntityReferenceSelectionSortTest extends EntityKernelTestBase {
     $this->assertIdentical($result['article'], $expected_result, 'Query sorted by field returned expected values.');
 
     // Assert sort by base field.
-    $selection_options['handler_settings']['sort'] = [
+    $selection_options['sort'] = [
       'field' => 'nid',
       'direction' => 'ASC',
     ];