function SearchDeprecationTest::testMarkForReindex

@expectedDeprecation search_mark_for_reindex() is deprecated in drupal:8.8.0 and is removed in drupal:9.0.0. Use \Drupal\search\SearchIndex::markForReindex() instead. See https://www.drupal.org/node/3075696

File

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

Class

SearchDeprecationTest
Tests deprecated search methods.

Namespace

Drupal\Tests\search\Kernel

Code

public function testMarkForReindex() {
    $this->assertNull(search_mark_for_reindex('_test_', 1, LanguageInterface::LANGCODE_NOT_SPECIFIED));
}

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