You are here

class FacetsTest in Search API Solr 4.x

Same name in this branch
  1. 4.x tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr\Functional\FacetsTest
  2. 4.x modules/search_api_solr_legacy/tests/src/Functional/FacetsTest.php \Drupal\Tests\search_api_solr_legacy\Functional\FacetsTest

Tests the facets functionality using the Solr backend.

@group search_api_solr_legacy

Hierarchy

  • class \Drupal\Tests\search_api_solr\Functional\FacetsTest extends \Drupal\Tests\search_api\Functional\SearchApiBrowserTestBase uses \Drupal\Tests\facets\Functional\BlockTestTrait, \Drupal\Tests\facets\Functional\ExampleContentTrait, \Drupal\Tests\facets\Functional\TestHelperTrait, SolrCommitTrait
    • class \Drupal\Tests\search_api_solr_legacy\Functional\FacetsTest

Expanded class hierarchy of FacetsTest

File

modules/search_api_solr_legacy/tests/src/Functional/FacetsTest.php, line 13

Namespace

Drupal\Tests\search_api_solr_legacy\Functional
View source
class FacetsTest extends SearchApiSolrFacetsTest {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'search_api_solr_legacy',
    'search_api_solr_legacy_test',
  ];

  /**
   * {@inheritdoc}
   */
  public function setUp() : void {
    parent::setUp();

    // Swap the connector.
    Solr36TestConnector::adjustBackendConfig('search_api.server.solr_search_server');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FacetsTest::$modules public static property Overrides FacetsTest::$modules
FacetsTest::clickLinkHelper protected function Provides a helper for ::clickLink() and ::clickLinkPartialName().
FacetsTest::clickLinkPartialName protected function Follows a link by partial name.
FacetsTest::indexItems protected function Indexes all (unindexed) items on the specified index.
FacetsTest::setUp public function
FacetsTest::tearDown protected function
FacetsTest::testFacets public function Tests basic facets integration.
SolrCommitTrait::ensureCommit protected function Explicitly sends a commit command to a Solr server.