SearchIndexTest.php

Same filename in other branches
  1. 9 core/modules/search/tests/src/Kernel/SearchIndexTest.php
  2. 10 core/modules/search/tests/src/Kernel/SearchIndexTest.php

Namespace

Drupal\Tests\search\Kernel

File

core/modules/search/tests/src/Kernel/SearchIndexTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\search\Kernel;

use Drupal\KernelTests\KernelTestBase;

/**
 * Tests the service "search.index".
 *
 * @group search
 */
class SearchIndexTest extends KernelTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'search',
    ];
    
    /**
     * Test that the service "search.index" is backend overridable.
     */
    public function testSearchIndexServiceIsBackendOverridable() : void {
        $definition = $this->container
            ->getDefinition('search.index');
        $this->assertTrue($definition->hasTag('backend_overridable'));
    }

}

Classes

Title Deprecated Summary
SearchIndexTest Tests the service "search.index".

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.