You are here

protected function SearchApiSolrTest::getExpectedFacetsOfRegressionTest2469547 in Search API Solr 8

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

Return the expected facets for regression test 2469547.

The facets differ for Solr backends because of case-insensitive filters.

Return value

array

1 call to SearchApiSolrTest::getExpectedFacetsOfRegressionTest2469547()
SearchApiSolrTest::regressionTest2469547 in tests/src/Kernel/SearchApiSolrTest.php
Regression tests for #2469547.

File

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

Class

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

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

protected function getExpectedFacetsOfRegressionTest2469547() {
  return [
    [
      'count' => 4,
      'filter' => '"test"',
    ],
    [
      'count' => 3,
      'filter' => '"case"',
    ],
    [
      'count' => 1,
      'filter' => '"bar"',
    ],
    [
      'count' => 1,
      'filter' => '"foobar"',
    ],
  ];
}