You are here

public function IgnoreCharacterTest::ignorableCharactersDataProvider in Search API 8

Provides sets of test parameters for testIgnorableCharacters().

Return value

array Sets of arguments for testIgnorableCharacters().

File

tests/src/Unit/Processor/IgnoreCharacterTest.php, line 134

Class

IgnoreCharacterTest
Tests the "Ignore characters" processor.

Namespace

Drupal\Tests\search_api\Unit\Processor

Code

public function ignorableCharactersDataProvider() {
  return [
    [
      'abcde',
      'ace',
      '[bd]',
    ],
    [
      [
        'abcde',
        'abcdef',
      ],
      [
        'ace',
        'ace',
      ],
      '[bdf]',
    ],
    [
      "ab.c'de",
      "a.'de",
      '[b-c]',
    ],
    [
      'foo 13$%& (bar)[93]',
      'foo $%& (bar)[]',
      '\\d',
    ],
  ];
}