You are here

class AddHierarchyTest in Search API Solr 4.x

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

Tests the "Hierarchy" processor.

@group search_api_solr_legacy

@coversDefaultClass \Drupal\search_api\Plugin\search_api\processor\AddHierarchy

Hierarchy

Expanded class hierarchy of AddHierarchyTest

See also

\Drupal\search_api\Plugin\search_api\processor\AddHierarchy

File

modules/search_api_solr_legacy/tests/src/Kernel/Processor/AddHierarchyTest.php, line 17

Namespace

Drupal\Tests\search_api_solr_legacy\Kernel\Processor
View source
class AddHierarchyTest extends SearchApiSolrAddHierarchyTest {

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

  /**
   * {@inheritdoc}
   */
  protected function enableSolrServer() {
    parent::enableSolrServer();

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

}

Members

Namesort descending Modifiers Type Description Overrides
AddHierarchyTest::$modules public static property Overrides AddHierarchyTest::$modules
AddHierarchyTest::enableSolrServer protected function Swap the DB backend for a Solr backend. Overrides SolrBackendTrait::enableSolrServer
AddHierarchyTest::setUp public function
AddHierarchyTest::testRegression3059312 public function
SolrBackendTrait::indexItems protected function
SolrBackendTrait::tearDown protected function
SolrCommitTrait::ensureCommit protected function Explicitly sends a commit command to a Solr server.