You are here

public function SearchApiSolrTest::configGenerationDataProvider in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/SearchApiSolrTest.php \Drupal\Tests\search_api_solr\Kernel\SearchApiSolrTest::configGenerationDataProvider()
  2. 4.x tests/src/Kernel/SearchApiSolrTest.php \Drupal\Tests\search_api_solr\Kernel\SearchApiSolrTest::configGenerationDataProvider()

Data provider for testConfigGeneration method.

Return value

array

1 method overrides SearchApiSolrTest::configGenerationDataProvider()
SearchApiSolrMultilingualTest::configGenerationDataProvider in tests/src/Kernel/SearchApiSolrMultilingualTest.php
Data provider for testConfigGeneration method.

File

tests/src/Kernel/SearchApiSolrTest.php, line 977

Class

SearchApiSolrTest
Tests index and search capabilities using the Solr search backend.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

public function configGenerationDataProvider() {
  return [
    'und' => [
      'und',
      [
        'schema_extra_types.xml' => [
          # phonetic is currently not available vor Solr 6.x.

          #'fieldType name="text_phonetic_und" class="solr.TextField"',
          'fieldType name="text_und" class="solr.TextField"',
        ],
        'schema_extra_fields.xml' => [],
        'solrconfig_extra.xml' => [
          '<str name="name">und</str>',
        ],
        # phonetic is currently not available vor Solr 6.x.

        #'stopwords_phonetic_und.txt' => [],

        #'protwords_phonetic_und.txt' => [],
        'stopwords_und.txt' => [],
        'synonyms_und.txt' => [
          'drupal, durpal',
        ],
        'protwords_und.txt' => [],
        'accents_und.txt' => [
          '"\\u00C4" => "A"',
        ],
        'mapping-ISOLatin1Accent.txt' => [
          '"\\u00c4" => "A"',
        ],
        'solrcore.properties' => [],
        'elevate.xml' => [],
        'schema.xml' => [],
        'solrconfig.xml' => [],
        'test.txt' => [
          'hook_search_api_solr_config_files_alter() works',
        ],
      ],
    ],
  ];
}