You are here

public function DateRangeTest::rangeQueryDataProvider in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Processor/DateRangeTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\DateRangeTest::rangeQueryDataProvider()
  2. 4.x tests/src/Kernel/Processor/DateRangeTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\DateRangeTest::rangeQueryDataProvider()

Data provider for testIndexField method.

File

tests/src/Kernel/Processor/DateRangeTest.php, line 207

Class

DateRangeTest
Tests the "Date range" processor.

Namespace

Drupal\Tests\search_api_solr\Kernel\Processor

Code

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',
    ],
  ];
}