function SearchDeprecationTest::testClear
@expectedDeprecation search_index_clear() is deprecated in drupal:8.8.0 and is removed in drupal:9.0.0. Use \Drupal\search\SearchIndex::clear() instead. See https://www.drupal.org/node/3075696
File
-
core/
modules/ search/ tests/ src/ Kernel/ SearchDeprecationTest.php, line 44
Class
- SearchDeprecationTest
- Tests deprecated search methods.
Namespace
Drupal\Tests\search\KernelCode
public function testClear() {
$this->assertNull(search_index_clear());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.