Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / views / tests / src / Unit / ViewsDataHelperTest.php
index 2289f236e6ce7f998484efacd8bfcc6222bfb813..b08938c234e0723916b5fcfe54816f6b1d810933 100644 (file)
@@ -97,7 +97,7 @@ class ViewsDataHelperTest extends UnitTestCase {
     foreach ($handler_types as $handler_type) {
       $fields = $data_helper->fetchFields('views_test_data', $handler_type);
       $expected_keys = $expected[$handler_type];
-      array_walk($expected_keys, function(&$item) {
+      array_walk($expected_keys, function (&$item) {
         $item = "views_test_data.$item";
       });
       $this->assertEquals($expected_keys, array_keys($fields), "Handlers of type $handler_type are not listed as expected");
@@ -108,7 +108,7 @@ class ViewsDataHelperTest extends UnitTestCase {
       $fields = $data_helper->fetchFields('views_test_data', 'area', FALSE, $sub_type);
 
       $expected_keys = $expected[$sub_type];
-      array_walk($expected_keys, function(&$item) {
+      array_walk($expected_keys, function (&$item) {
         $item = "views_test_data.$item";
       });
       $this->assertEquals($expected_keys, array_keys($fields), "Sub_type $sub_type is not filtered as expected.");