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
Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/Processor/AddHierarchyTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\AddHierarchyTest
  2. 8 tests/src/Kernel/Processor/AddHierarchyTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\AddHierarchyTest
  3. 8.2 tests/src/Kernel/Processor/AddHierarchyTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\AddHierarchyTest

Tests the "Hierarchy" processor.

@group search_api_solr

@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

1 file declares its use of AddHierarchyTest
AddHierarchyTest.php in modules/search_api_solr_legacy/tests/src/Kernel/Processor/AddHierarchyTest.php

File

tests/src/Kernel/Processor/AddHierarchyTest.php, line 16

Namespace

Drupal\Tests\search_api_solr\Kernel\Processor
View source
class AddHierarchyTest extends SearchApiAddHierarchyTest {
  use SolrBackendTrait;

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

  /**
   * {@inheritdoc}
   */
  public function setUp($processor = NULL) : void {
    parent::setUp();
    $this
      ->enableSolrServer();
  }

  /**
   *
   */
  public function testRegression3059312() {
    $this
      ->markTestSkipped('This test makes no sense on Solr.');
  }

}

Members

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