You are here

class NumberFieldBoostTest in Search API Solr 4.x

Tests the "Number field boost" processor.

@group search_api_solr

@coversDefaultClass \Drupal\search_api\Plugin\search_api\processor\NumberFieldBoost

Hierarchy

Expanded class hierarchy of NumberFieldBoostTest

See also

\Drupal\search_api\Plugin\search_api\processor\NumberFieldBoost

File

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

Namespace

Drupal\Tests\search_api_solr\Kernel\Processor
View source
class NumberFieldBoostTest extends SearchApiNumberFieldBoostTest {
  use SolrBackendTrait;

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
NumberFieldBoostTest::$modules public static property
NumberFieldBoostTest::setUp 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.