Skip to content
Snippets Groups Projects
Commit 83c20c7c authored by daffie's avatar daffie Committed by Lee Rowlands
Browse files

Issue #3209453 by daffie: The service "search.index" should be backend_overridable

parent cdf0726e
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ services:
search.index:
class: Drupal\search\SearchIndex
arguments: ['@config.factory', '@database','@database.replica', '@cache_tags.invalidator', '@search.text_processor']
tags:
- { name: backend_overridable }
search.text_processor:
class: Drupal\search\SearchTextProcessor
......
<?php
namespace Drupal\Tests\search\Kernel;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests the service "search.index".
*
* @group search
*/
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'));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment