Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / hal / tests / src / Kernel / DenormalizeTest.php
index d3662cb597a2d7c8646739dd445c22de235babb2..87eb97329f003a3044e875ac4c528b7183330266 100644 (file)
@@ -62,8 +62,7 @@ class DenormalizeTest extends NormalizerTestBase {
 
     // No type.
     $data_with_no_type = [
-      '_links' => [
-      ],
+      '_links' => [],
     ];
     try {
       $this->serializer->denormalize($data_with_no_type, $this->entityClass, $this->format);
@@ -136,7 +135,7 @@ class DenormalizeTest extends NormalizerTestBase {
       ],
       'field_test_text' => [],
     ];
-    $entity = $this->serializer->denormalize($data, get_class($entity), $this->format, [ 'target_instance' => $entity ]);
+    $entity = $this->serializer->denormalize($data, get_class($entity), $this->format, ['target_instance' => $entity]);
     $this->assertEqual($entity->field_test_text->count(), 0);
   }