Skip to content
Snippets Groups Projects
Commit ce55712c authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2587043 by quietone, phenaproxima: Variable to config: search_default_module [d7]

parent fa36dbda
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -12,6 +12,7 @@ source: ...@@ -12,6 +12,7 @@ source:
- search_cron_limit - search_cron_limit
- search_tag_weights - search_tag_weights
- search_and_or_limit - search_and_or_limit
- search_default_module
process: process:
'index/minimum_word_size': minimum_word_size 'index/minimum_word_size': minimum_word_size
'index/overlap_cjk': overlap_cjk 'index/overlap_cjk': overlap_cjk
...@@ -19,6 +20,13 @@ process: ...@@ -19,6 +20,13 @@ process:
'index/tag_weights': search_tag_weights 'index/tag_weights': search_tag_weights
and_or_limit: search_and_or_limit and_or_limit: search_and_or_limit
logging: 'constants/status' logging: 'constants/status'
default_page:
plugin: static_map
source:
- search_default_module
map:
node: node_search
user: user_search
destination: destination:
plugin: config plugin: config
config_name: search.settings config_name: search.settings
...@@ -31,6 +31,7 @@ protected function setUp() { ...@@ -31,6 +31,7 @@ protected function setUp() {
*/ */
public function testSearchSettings() { public function testSearchSettings() {
$config = $this->config('search.settings'); $config = $this->config('search.settings');
$this->assertIdentical('node_search', $config->get('default_page'));
$this->assertIdentical(4, $config->get('index.minimum_word_size')); $this->assertIdentical(4, $config->get('index.minimum_word_size'));
$this->assertTrue($config->get('index.overlap_cjk')); $this->assertTrue($config->get('index.overlap_cjk'));
$this->assertIdentical(100, $config->get('index.cron_limit')); $this->assertIdentical(100, $config->get('index.cron_limit'));
......
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