You are here

public function StemmerTest::preprocessSearchQueryDataProvider in Search API 8

Provides sets of arguments for testPreprocessSearchQuery().

Return value

array[] Arrays of arguments for testPreprocessSearchQuery().

File

tests/src/Unit/Processor/StemmerTest.php, line 160

Class

StemmerTest
Tests the "Stemmer" processor.

Namespace

Drupal\Tests\search_api\Unit\Processor

Code

public function preprocessSearchQueryDataProvider() {
  return [
    'language-less query' => [
      NULL,
      TRUE,
    ],
    'English query' => [
      [
        'en',
      ],
      TRUE,
    ],
    'Non-English query' => [
      [
        'de',
      ],
      FALSE,
    ],
    'Multilingual query (including English)' => [
      [
        'en',
        'fr',
        'es',
      ],
      TRUE,
    ],
    'Multilingual query (not including English)' => [
      [
        'de',
        'it',
      ],
      FALSE,
    ],
  ];
}