X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FRouting%2FDefaultHtmlRouteProviderTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FRouting%2FDefaultHtmlRouteProviderTest.php;h=4e25e4e3b57ad026f28330ac5f908a9ede94ed06;hp=7e853bca2bd9af65b87d734c4f0b0df06e7291fb;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php b/web/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php index 7e853bca2..4e25e4e3b 100644 --- a/web/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php +++ b/web/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php @@ -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;