You are here

public function SearchIndexTest::testSearchIndexServiceIsBackendOverridable in Drupal 10

Same name and namespace in other branches
  1. 9 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\Kernel

Code

public function testSearchIndexServiceIsBackendOverridable() {
  $definition = $this->container
    ->getDefinition('search.index');
  $this
    ->assertTrue($definition
    ->hasTag('backend_overridable'));
}