You are here

protected function BackendTestBase::disableHtmlFilter in Search API 8

Disables the "HTML Filter" processor for the index.

1 call to BackendTestBase::disableHtmlFilter()
BackendTestBase::testBackend in tests/src/Kernel/BackendTestBase.php
Tests various indexing scenarios for the search backend.

File

tests/src/Kernel/BackendTestBase.php, line 186

Class

BackendTestBase
Provides a base class for backend tests.

Namespace

Drupal\Tests\search_api\Kernel

Code

protected function disableHtmlFilter() {
  $index = $this
    ->getIndex();
  $index
    ->removeProcessor('html_filter');
  $index
    ->save();
  $this
    ->assertArrayNotHasKey('html_filter', $index
    ->getProcessors(), 'HTML filter processor is removed.');
}