public function HtmlFilterTest::stringProcessingDataProvider in Search API 8
Provides a few sets of HTML filter configuration.
Return value
array An array of argument arrays for testStringProcessing(), where each array contains a HTML filter configuration as the only value.
File
- tests/
src/ Unit/ Processor/ HtmlFilterTest.php, line 267
Class
- HtmlFilterTest
- Tests the "HTML filter" processor.
Namespace
Drupal\Tests\search_api\Unit\ProcessorCode
public function stringProcessingDataProvider() {
$configs = [];
$configs[] = [
[],
];
$config['tags'] = [
'h2' => 2.0,
'span' => 4.0,
'strong' => 1.5,
'p' => 0,
];
$configs[] = [
$config,
];
$config['title'] = TRUE;
$configs[] = [
$config,
];
$config['alt'] = TRUE;
$configs[] = [
$config,
];
unset($config['tags']);
$configs[] = [
$config,
];
return $configs;
}