public function BackendPluginBaseTest::getQueryFulltextFieldsDataProvider in Search API 8
Provides test data for testGetQueryFulltextFields().
Return value
array[] An array of argument arrays for testGetQueryFulltextFields().
File
- tests/
src/ Unit/ BackendPluginBaseTest.php, line 52
Class
- BackendPluginBaseTest
- Tests methods provided by the backend plugin base class.
Namespace
Drupal\Tests\search_api\UnitCode
public function getQueryFulltextFieldsDataProvider() {
return [
'null fields' => [
NULL,
[
'field1',
'field2',
],
],
'field1' => [
[
'field1',
],
[
'field1',
],
],
'field2' => [
[
'field2',
],
[
'field2',
],
],
'all fields' => [
[
'field1',
'field2',
],
[
'field1',
'field2',
],
],
'invalid fields' => [
[
'field1',
'foo',
],
[
'field1',
],
],
];
}