Commit ce55712c authored by webchick's avatar webchick

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

parent fa36dbda
......@@ -12,6 +12,7 @@ source:
- search_cron_limit
- search_tag_weights
- search_and_or_limit
- search_default_module
process:
'index/minimum_word_size': minimum_word_size
'index/overlap_cjk': overlap_cjk
......@@ -19,6 +20,13 @@ process:
'index/tag_weights': search_tag_weights
and_or_limit: search_and_or_limit
logging: 'constants/status'
default_page:
plugin: static_map
source:
- search_default_module
map:
node: node_search
user: user_search
destination:
plugin: config
config_name: search.settings
......@@ -31,6 +31,7 @@ protected function setUp() {
*/
public function testSearchSettings() {
$config = $this->config('search.settings');
$this->assertIdentical('node_search', $config->get('default_page'));
$this->assertIdentical(4, $config->get('index.minimum_word_size'));
$this->assertTrue($config->get('index.overlap_cjk'));
$this->assertIdentical(100, $config->get('index.cron_limit'));
......
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