Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Entity / Routing / DefaultHtmlRouteProviderTest.php
index 7e853bca2bd9af65b87d734c4f0b0df06e7291fb..4e25e4e3b57ad026f28330ac5f908a9ede94ed06 100644 (file)
@@ -136,8 +136,7 @@ class DefaultHtmlRouteProviderTest extends UnitTestCase {
         'entity_type_id' => 'the_entity_type_id',
         '_title_callback' => 'Drupal\Core\Entity\Controller\EntityController::addTitle',
       ])
-      ->setRequirement('_entity_create_access', 'the_entity_type_id')
-    ;
+      ->setRequirement('_entity_create_access', 'the_entity_type_id');
     $data['no_add_form_no_bundle'] = [clone $route, $entity_type2->reveal()];
 
     $entity_type3 = $this->getEntityType($entity_type2);
@@ -165,9 +164,11 @@ class DefaultHtmlRouteProviderTest extends UnitTestCase {
     $route
       ->setDefault('bundle_parameter', 'the_bundle_entity_type_id')
       ->setRequirement('_entity_create_access', 'the_entity_type_id:{the_bundle_entity_type_id}')
-      ->setOption('parameters', ['the_bundle_entity_type_id' => [
-        'type' => 'entity:the_bundle_entity_type_id',
-      ]]);
+      ->setOption('parameters', [
+        'the_bundle_entity_type_id' => [
+          'type' => 'entity:the_bundle_entity_type_id',
+        ],
+      ]);
     $data['add_form_bundle_entity_id_key_type_null'] = [clone $route, $entity_type5->reveal(), $bundle_entity_type->reveal()];
 
     $entity_type6 = $this->getEntityType($entity_type5);
@@ -185,10 +186,12 @@ class DefaultHtmlRouteProviderTest extends UnitTestCase {
     $route
       // Unset the 'the_entity_type_id' requirement.
       ->setRequirements(['_entity_create_access' => $route->getRequirement('_entity_create_access')])
-      ->setOption('parameters', ['the_bundle_entity_type_id' => [
-      'type' => 'entity:the_bundle_entity_type_id',
-      'with_config_overrides' => TRUE,
-    ]]);
+      ->setOption('parameters', [
+        'the_bundle_entity_type_id' => [
+          'type' => 'entity:the_bundle_entity_type_id',
+          'with_config_overrides' => TRUE,
+        ],
+      ]);
     $data['add_form_bundle_entity_id_key_type_integer'] = [clone $route, $entity_type7->reveal(), $bundle_entity_type->reveal(), $field_storage_definition->reveal()];
 
     return $data;