function SearchDeprecationTest::testInvokePreprocess

File

core/modules/search/tests/src/Kernel/SearchDeprecationTest.php, line 49

Class

SearchDeprecationTest
Tests deprecated search methods.

Namespace

Drupal\Tests\search\Kernel

Code

public function testInvokePreprocess() {
    $this->expectDeprecation('search_invoke_preprocess() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use a custom implementation of SearchTextProcessorInterface instead. See https://www.drupal.org/node/3078162');
    $text = $this->randomString();
    search_invoke_preprocess($text);
    $this->assertIsString($text);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.