Commit 8c811242 authored by webchick's avatar webchick

Issue #2549921 by borisson_, alexpott: SearchExcerptTest and SearchMatchTest...

Issue #2549921 by borisson_, alexpott: SearchExcerptTest and SearchMatchTest should be a KernelTestBase tests
parent 6dd0d5ac
......@@ -7,14 +7,14 @@
namespace Drupal\search\Tests;
use Drupal\simpletest\WebTestBase;
use Drupal\simpletest\KernelTestBase;
/**
* Tests the search_excerpt() function.
*
* @group search
*/
class SearchExcerptTest extends WebTestBase {
class SearchExcerptTest extends KernelTestBase {
/**
* Modules to enable.
......
......@@ -8,6 +8,7 @@
namespace Drupal\search\Tests;
use Drupal\Core\Language\LanguageInterface;
use Drupal\simpletest\KernelTestBase;
// The search index can contain different types of content. Typically the type
// is 'node'. Here we test with _test_ and _test2_ as the type.
......@@ -20,7 +21,24 @@
*
* @group search
*/
class SearchMatchTest extends SearchTestBase {
class SearchMatchTest extends KernelTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = ['search'];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->installSchema('search', ['search_index', 'search_dataset', 'search_total']);
$this->installConfig(['search']);
}
/**
* Test search indexing.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment