You are here

public function ProcessorIntegrationTest::checkHighlightIntegration in Search API 8

Tests the UI for the "Highlight" processor.

1 call to ProcessorIntegrationTest::checkHighlightIntegration()
ProcessorIntegrationTest::testProcessorIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the admin UI for processors.

File

tests/src/Functional/ProcessorIntegrationTest.php, line 463

Class

ProcessorIntegrationTest
Tests the admin UI for processors.

Namespace

Drupal\Tests\search_api\Functional

Code

public function checkHighlightIntegration() {
  $configuration = [
    'highlight' => 'never',
    'excerpt' => FALSE,
    'excerpt_length' => 128,
    'prefix' => '<em>',
    'suffix' => '</em>',
  ];
  $this
    ->editSettingsForm($configuration, 'highlight');
}