public function ProcessorIntegrationTest::checkTokenizerIntegration in Search API 8
Tests the UI for the "Tokenizer" processor.
1 call to ProcessorIntegrationTest::checkTokenizerIntegration()
- ProcessorIntegrationTest::testProcessorIntegration in tests/
src/ Functional/ ProcessorIntegrationTest.php - Tests the admin UI for processors.
File
- tests/
src/ Functional/ ProcessorIntegrationTest.php, line 647
Class
- ProcessorIntegrationTest
- Tests the admin UI for processors.
Namespace
Drupal\Tests\search_api\FunctionalCode
public function checkTokenizerIntegration() {
$configuration = [
'spaces' => '[:foobar:]',
];
$this
->checkValidationError($configuration, 'tokenizer', 'The entered text is no valid PCRE character class.');
$configuration = [
'all_fields' => TRUE,
'spaces' => '',
'overlap_cjk' => FALSE,
'minimum_word_size' => 2,
];
$this
->editSettingsForm($configuration, 'tokenizer');
}