class SearchIndexTest in Drupal 10
Same name and namespace in other branches
- 9 core/modules/search/tests/src/Kernel/SearchIndexTest.php \Drupal\Tests\search\Kernel\SearchIndexTest
Tests the service "search.index".
@group search
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \PHPUnit\Framework\TestCase implements ServiceProviderInterface uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, AssertContentTrait, ConfigTestTrait, ExtensionListTestTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings
- class \Drupal\Tests\search\Kernel\SearchIndexTest
Expanded class hierarchy of SearchIndexTest
File
- core/
modules/ search/ tests/ src/ Kernel/ SearchIndexTest.php, line 12
Namespace
Drupal\Tests\search\KernelView 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'));
}
}