public function DateRangeTest::rangeQueryDataProvider in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 tests/src/Kernel/Processor/DateRangeTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\DateRangeTest::rangeQueryDataProvider()
- 4.x tests/src/Kernel/Processor/DateRangeTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\DateRangeTest::rangeQueryDataProvider()
Data provider for testIndexField method. Set of values can be extended to check other field types and values.
Return value
array
File
- tests/
src/ Kernel/ Processor/ DateRangeTest.php, line 208
Class
- DateRangeTest
- Tests the "Date range" processor.
Namespace
Drupal\Tests\search_api_solr\Kernel\ProcessorCode
public function rangeQueryDataProvider() {
return [
[
'field_date_range',
'2016-11-12',
'2016-10-20',
],
[
'field_date_ranges',
'2015-11-12',
'2015-10-20',
],
[
'field_date_ranges',
'2014-11-12',
'2014-10-20',
],
];
}