You are here

public function StopwordsTest::processDataProvider in Search API 8

Data provider for testStopwords().

Processor checks for exact case, and tokenized content.

File

tests/src/Unit/Processor/StopwordsTest.php, line 52

Class

StopwordsTest
Tests the "Stopwords" processor.

Namespace

Drupal\Tests\search_api\Unit\Processor

Code

public function processDataProvider() {
  return [
    [
      'or',
      '',
      [
        'or',
      ],
    ],
    [
      'orb',
      'orb',
      [
        'or',
      ],
    ],
    [
      'for',
      'for',
      [
        'or',
      ],
    ],
    [
      'ordor',
      'ordor',
      [
        'or',
      ],
    ],
    [
      'ÄÖÜÀÁ<>»«û',
      'ÄÖÜÀÁ<>»«û',
      [
        'stopword1',
        'ÄÖÜÀÁ<>»«',
        'stopword3',
      ],
    ],
    [
      'ÄÖÜÀÁ',
      '',
      [
        'stopword1',
        'ÄÖÜÀÁ',
        'stopword3',
      ],
    ],
    [
      'ÄÖÜÀÁ stopword1',
      'ÄÖÜÀÁ stopword1',
      [
        'stopword1',
        'ÄÖÜÀÁ',
        'stopword3',
      ],
    ],
  ];
}