Commit 9872c3ae authored by alexpott's avatar alexpott
Browse files

Issue #2305869 by svendecabooter, ultimike | jhodgdon: Search migration -...

Issue #2305869 by svendecabooter, ultimike | jhodgdon: Search migration - search logging (new setting).
parent 7c0295d2
...@@ -4,6 +4,8 @@ migration_groups: ...@@ -4,6 +4,8 @@ migration_groups:
- Drupal 6 - Drupal 6
source: source:
plugin: variable plugin: variable
constants:
status: true
variables: variables:
- minimum_word_size - minimum_word_size
- overlap_cjk - overlap_cjk
...@@ -14,6 +16,7 @@ process: ...@@ -14,6 +16,7 @@ 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
'index/cron_limit': search_cron_limit 'index/cron_limit': search_cron_limit
logging: 'constants/status'
destination: destination:
plugin: config plugin: config
config_name: search.settings config_name: search.settings
...@@ -32,6 +32,9 @@ migrate.source.variable: ...@@ -32,6 +32,9 @@ migrate.source.variable:
plugin: plugin:
type: string type: string
label: 'Plugin' label: 'Plugin'
status:
type: boolean
label: 'Status'
migrate.source.d6_comment: migrate.source.d6_comment:
type: migrate_source_sql type: migrate_source_sql
......
...@@ -50,6 +50,7 @@ public function testSearchSettings() { ...@@ -50,6 +50,7 @@ public function testSearchSettings() {
$this->assertIdentical($config->get('index.minimum_word_size'), 3); $this->assertIdentical($config->get('index.minimum_word_size'), 3);
$this->assertIdentical($config->get('index.overlap_cjk'), TRUE); $this->assertIdentical($config->get('index.overlap_cjk'), TRUE);
$this->assertIdentical($config->get('index.cron_limit'), 100); $this->assertIdentical($config->get('index.cron_limit'), 100);
$this->assertIdentical($config->get('logging'), TRUE);
$this->assertConfigSchema(\Drupal::service('config.typed'), 'search.settings', $config->get()); $this->assertConfigSchema(\Drupal::service('config.typed'), 'search.settings', $config->get());
} }
......
Supports Markdown
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