You are here

public function UtilitiesTest::testHighlightedKeys in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x tests/src/Kernel/UtilitiesTest.php \Drupal\Tests\search_api_solr\Kernel\UtilitiesTest::testHighlightedKeys()

Tests extracting of highlighted keys.

File

tests/src/Kernel/UtilitiesTest.php, line 147

Class

UtilitiesTest
Provides tests for various utility functions.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

public function testHighlightedKeys() {
  $snippet = '';
  $highlighted_keys = Utility::getHighlightedKeys($snippet);
  $this
    ->assertEquals([], $highlighted_keys);
}