You are here

class SearchIndexTest 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

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'));
  }

}

Members