You are here

public function UtilitiesTest::testLanguageSpecificDynamicFieldNames in Search API Solr 8.2

Tests language-specific Solr field names.

File

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

Class

UtilitiesTest
Provides tests for various utility functions.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

public function testLanguageSpecificDynamicFieldNames() {
  $this
    ->doDynamicFieldNameConversions();

  // Traditional Chinese as used in Hong Kong.
  $this
    ->doDynamicFieldNameConversions('ts', 'zh-Hant-HK', 'a_longer_field_name');

  // The variant of German orthography dating from the 1901 reforms, as seen
  // in Switzerland.
  $this
    ->doDynamicFieldNameConversions('tm', 'de-CH-1901', 'sophisticated/field;NAME');
  $this
    ->doDynamicFieldNameConversions('tm', 'en', 'tm;en_tm_en_repeated_sequences');
}