'job',
],
'footer' =>
[ 'age',
'created',
'job',
],
];
$handler_types =
['field', 'argument', 'filter', 'sort', 'area'
];
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 D&
$item) { $item = "views_test_data.
$item";
});
$this->
assertEquals($expected_keys,
array_keys($fields), "Handlers of type
$handler_type are not listed as expected"
);
} // Check for subtype filtering, so header and footer.
foreach (['header', 'footer'
] as $sub_type) { $fields =
$data_helper->
fetchFields('views_test_data', 'area', FALSE,
$sub_type);