Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Entity / EntityTypeBundleInfoTest.php
index 6242322efcb3502b530dc9a5f826beef4a9dafce..d4e0442010f701dd021bbf90212dece47df49f6d 100644 (file)
@@ -100,7 +100,7 @@ class EntityTypeBundleInfoTest extends UnitTestCase {
 
     $container = $this->prophesize(ContainerInterface::class);
     $container->get('cache_tags.invalidator')->willReturn($this->cacheTagsInvalidator->reveal());
-    //$container->get('typed_data_manager')->willReturn($this->typedDataManager->reveal());
+    // $container->get('typed_data_manager')->willReturn($this->typedDataManager->reveal());
     \Drupal::setContainer($container->reveal());
 
     $this->entityTypeBundleInfo = new EntityTypeBundleInfo($this->entityTypeManager->reveal(), $this->languageManager->reveal(), $this->moduleHandler->reveal(), $this->typedDataManager->reveal(), $this->cacheBackend->reveal());
@@ -136,7 +136,9 @@ class EntityTypeBundleInfoTest extends UnitTestCase {
         elseif (!$exception_on_invalid) {
           return NULL;
         }
-        else throw new PluginNotFoundException($entity_type_id);
+        else {
+          throw new PluginNotFoundException($entity_type_id);
+        }
       });
     $this->entityTypeManager->getDefinitions()->willReturn($definitions);
 
@@ -194,15 +196,13 @@ class EntityTypeBundleInfoTest extends UnitTestCase {
   public function providerTestGetBundleInfo() {
     return [
       ['apple', [
-        'apple' => [
-          'label' => 'Apple',
+          'apple' => ['label' => 'Apple'],
         ],
-      ]],
+      ],
       ['banana', [
-        'banana' => [
-          'label' => 'Banana',
+          'banana' => ['label' => 'Banana'],
         ],
-      ]],
+      ],
       ['pear', []],
     ];
   }