Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Form / FormCacheTest.php
index 8b2734d51c209164d900dd56da38b39df864ef08..3ae9d6c139fb0020c54ce89236dd1d564c4998d4 100644 (file)
@@ -299,16 +299,18 @@ class FormCacheTest extends UnitTestCase {
       ->method('isAnonymous')
       ->willReturn(TRUE);
 
-    $cached_form_state = ['build_info' => ['files' => [
-      [
-        'module' => 'a_module',
-        'type' => 'the_type',
-        'name' => 'some_name',
+    $cached_form_state = [
+      'build_info' => [
+        'files' => [
+          [
+            'module' => 'a_module',
+            'type' => 'the_type',
+            'name' => 'some_name',
+          ],
+          ['module' => 'another_module'],
+        ],
       ],
-      [
-        'module' => 'another_module',
-      ],
-    ]]];
+    ];
     $this->moduleHandler->expects($this->at(0))
       ->method('loadInclude')
       ->with('a_module', 'the_type', 'some_name');