You are here

public function ContentAccessTest::setUp in Search API Solr 8

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/Processor/ContentAccessTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\ContentAccessTest::setUp()
  2. 8.2 tests/src/Kernel/Processor/ContentAccessTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\ContentAccessTest::setUp()
  3. 4.x tests/src/Kernel/Processor/ContentAccessTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\ContentAccessTest::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 ContentAccessTest::setUp

File

tests/src/Kernel/Processor/ContentAccessTest.php, line 27

Class

ContentAccessTest
Tests the "Content access" processor.

Namespace

Drupal\Tests\search_api_solr\Kernel\Processor

Code

public function setUp($processor = NULL) {
  parent::setUp();
  $this
    ->enableSolrServer('search_api_solr_test', '/config/install/search_api.server.solr_search_server.yml');
}