public function SearchDeprecationTest::testIndex in Drupal 8
@expectedDeprecation search_index() is deprecated in drupal:8.8.0 and is removed in drupal:9.0.0. Use \Drupal\search\SearchIndex::index() instead. See https://www.drupal.org/node/3075696
File
- core/
modules/ search/ tests/ src/ Kernel/ SearchDeprecationTest.php, line 37
Class
- SearchDeprecationTest
- Tests deprecated search methods.
Namespace
Drupal\Tests\search\KernelCode
public function testIndex() {
$this
->assertNull(search_index('_test_', 1, LanguageInterface::LANGCODE_NOT_SPECIFIED, "foo"));
}