class SearchIndexTest

Same name and namespace in other branches
  1. 11.x core/modules/search/tests/src/Kernel/SearchIndexTest.php \Drupal\Tests\search\Kernel\SearchIndexTest
  2. 10 core/modules/search/tests/src/Kernel/SearchIndexTest.php \Drupal\Tests\search\Kernel\SearchIndexTest

Tests the service "search.index".

@group search

Hierarchy

Expanded class hierarchy of SearchIndexTest

File

core/modules/search/tests/src/Kernel/SearchIndexTest.php, line 12

Namespace

Drupal\Tests\search\Kernel
View source
class SearchIndexTest extends KernelTestBase {
  
  /**
   * Modules to enable.
   *
   * @var array
   */
  protected static $modules = [
    'search',
  ];
  
  /**
   * Test that the service "search.index" is backend overridable.
   */
  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.