function SearchIndexTest::testSearchIndexServiceIsBackendOverridable
Same name in other branches
- 9 core/modules/search/tests/src/Kernel/SearchIndexTest.php \Drupal\Tests\search\Kernel\SearchIndexTest::testSearchIndexServiceIsBackendOverridable()
- 11.x core/modules/search/tests/src/Kernel/SearchIndexTest.php \Drupal\Tests\search\Kernel\SearchIndexTest::testSearchIndexServiceIsBackendOverridable()
Test that the service "search.index" is backend overridable.
File
-
core/
modules/ search/ tests/ src/ Kernel/ SearchIndexTest.php, line 24
Class
- SearchIndexTest
- Tests the service "search.index".
Namespace
Drupal\Tests\search\KernelCode
public function testSearchIndexServiceIsBackendOverridable() : void {
$definition = $this->container
->getDefinition('search.index');
$this->assertTrue($definition->hasTag('backend_overridable'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.