public function AddHierarchyTest::setUp in Search API Solr 8.3
Same name and namespace in other branches
- 8 tests/src/Kernel/Processor/AddHierarchyTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\AddHierarchyTest::setUp()
- 8.2 tests/src/Kernel/Processor/AddHierarchyTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\AddHierarchyTest::setUp()
- 4.x tests/src/Kernel/Processor/AddHierarchyTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\AddHierarchyTest::setUp()
Performs setup tasks before each individual test method is run.
Installs commonly used schemas and sets up a search server and an index, with the specified processor enabled.
Parameters
string|null $processor: (optional) The plugin ID of the processor that should be set up for testing.
Overrides AddHierarchyTest::setUp
File
- tests/
src/ Kernel/ Processor/ AddHierarchyTest.php, line 33
Class
- AddHierarchyTest
- Tests the "Hierarchy" processor.
Namespace
Drupal\Tests\search_api_solr\Kernel\ProcessorCode
public function setUp($processor = NULL) {
parent::setUp();
$this
->enableSolrServer();
}