You are here

public function HtmlFilterTest::setUp in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/Processor/HtmlFilterTest.php \Drupal\Tests\search_api_solr\Kernel\Processor\HtmlFilterTest::setUp()

File

tests/src/Kernel/Processor/HtmlFilterTest.php, line 42

Class

HtmlFilterTest
Tests usages of Solr payloads.

Namespace

Drupal\Tests\search_api_solr\Kernel\Processor

Code

public function setUp($processor = NULL) : void {
  parent::setUp('html_filter');
  $this
    ->enableSolrServer();
  $this
    ->installConfig([
    'filter',
  ]);

  // Create a node type for testing.
  $type = NodeType::create([
    'type' => 'page',
    'name' => 'page',
  ]);
  $type
    ->save();
}