function SearchIndexTest::testSearchIndexServiceIsBackendOverridable

Same name in other branches
  1. 10 core/modules/search/tests/src/Kernel/SearchIndexTest.php \Drupal\Tests\search\Kernel\SearchIndexTest::testSearchIndexServiceIsBackendOverridable()
  2. 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\Kernel

Code

public function testSearchIndexServiceIsBackendOverridable() {
    $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.