public function UtilitiesTest::testLanguageSpecificDynamicFieldNames in Search API Multilingual Solr Search 8
Tests language-specific Solr field names.
File
- tests/
src/ Kernel/ UtilitiesTest.php, line 57
Class
- UtilitiesTest
- Provides tests for various utility functions.
Namespace
Drupal\Tests\search_api_solr_multilingual\KernelCode
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');
}