You are here

protected function FacetsTestBase::getIndex in Facets 8

Retrieves the search index used by this test.

Return value

\Drupal\search_api\IndexInterface The search index.

5 calls to FacetsTestBase::getIndex()
HierarchicalFacetIntegrationTest::setUp in tests/src/Functional/HierarchicalFacetIntegrationTest.php
HierarchicalFacetIntegrationTest::setUp in modules/facets_summary/tests/src/Functional/HierarchicalFacetIntegrationTest.php
ProcessorIntegrationTest::testBooleanProcessorIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the for processors in the frontend with a 'boolean' facet.
ProcessorIntegrationTest::testNumericGranularity in tests/src/Functional/ProcessorIntegrationTest.php
Tests the for configuration of granularity processor.
SliderIntegrationTest::createIntegerField in modules/facets_range_widget/tests/src/Functional/SliderIntegrationTest.php
Create integer field.

File

tests/src/Functional/FacetsTestBase.php, line 174

Class

FacetsTestBase
Provides the base class for web tests for Search API.

Namespace

Drupal\Tests\facets\Functional

Code

protected function getIndex() {
  return Index::load($this->indexId);
}