You are here

public function SearchDeprecationTest::testDeprecatedIndexSplit in Drupal 9

File

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

Class

SearchDeprecationTest
Tests deprecated search methods.

Namespace

Drupal\Tests\search\Kernel

Code

public function testDeprecatedIndexSplit() {
  $this
    ->expectDeprecation('search_index_split() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use \\Drupal\\search\\SearchTextProcessorInterface::process() instead. See https://www.drupal.org/node/3078162');
  $this
    ->assertEquals([
    "two",
    "words",
  ], search_index_split("two words"));
}