Commit 65b9815a authored by xjm's avatar xjm
Browse files

Issue #3134333 by xjm, longwave, ravi.shankar, daffie: Change...

Issue #3134333 by xjm, longwave, ravi.shankar, daffie: Change Drupal\Tests\search\Functional\SearchSimplifyTest and Drupal\Tests\search\Functional\SearchTokenizerTest to kerneltests

(cherry picked from commit 84f3be3d)
parent d81f1f21
<?php
namespace Drupal\Tests\search\Functional;
namespace Drupal\Tests\search\Kernel;
use Drupal\Tests\BrowserTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests that the search_simply() function works as intended.
*
* @group search
*/
class SearchSimplifyTest extends BrowserTestBase {
class SearchSimplifyTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = ['search'];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests that all Unicode characters simplify correctly.
*/
......
<?php
namespace Drupal\Tests\search\Functional;
namespace Drupal\Tests\search\Kernel;
use Drupal\Tests\BrowserTestBase;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests that CJK tokenizer works as intended.
*
* @group search
*/
class SearchTokenizerTest extends BrowserTestBase {
class SearchTokenizerTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = ['search'];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Verifies that strings of CJK characters are tokenized.
*
......@@ -36,7 +31,6 @@ public function testTokenizer() {
->set('index.minimum_word_size', 1)
->set('index.overlap_cjk', TRUE)
->save();
$this->refreshVariables();
// Create a string of CJK characters from various character ranges in
// the Unicode tables.
......@@ -124,7 +118,6 @@ public function testNoTokenizer() {
->set('index.minimum_word_size', 1)
->set('index.overlap_cjk', TRUE)
->save();
$this->refreshVariables();
$letters = 'abcdefghijklmnopqrstuvwxyz';
$out = trim(search_simplify($letters));
......
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