Unverified Commit c34c4408 authored by alexpott's avatar alexpott

Issue #2985784 by maxocub, heddn, masipila: No static mapping found in...

Issue #2985784 by maxocub, heddn, masipila: No static mapping found in d7_language_content_settings migration

(cherry picked from commit a42433ef)
parent 2a0adaa2
......@@ -20,6 +20,8 @@ process:
0: NULL
1: 'current_interface'
2: 'current_interface'
4: 'und'
default_value: NULL
-
plugin: skip_on_empty
method: row
......@@ -38,6 +40,7 @@ process:
0: NULL
1: false
2: true
4: true
destination:
plugin: entity:language_content_settings
content_translation_update_definitions:
......
......@@ -34,9 +34,9 @@ protected function setUp() {
public function testLanguageContent() {
// Assert that a translatable content is still translatable.
$config = $this->config('language.content_settings.node.blog');
$this->assertIdentical($config->get('target_entity_type_id'), 'node');
$this->assertIdentical($config->get('target_bundle'), 'blog');
$this->assertIdentical($config->get('default_langcode'), 'current_interface');
$this->assertSame($config->get('target_entity_type_id'), 'node');
$this->assertSame($config->get('target_bundle'), 'blog');
$this->assertSame($config->get('default_langcode'), 'current_interface');
$this->assertFalse($config->get('language_alterable'));
$this->assertTrue($config->get('third_party_settings.content_translation.enabled'));
......@@ -46,6 +46,23 @@ public function testLanguageContent() {
$this->assertFalse($config->isLanguageAlterable());
$this->assertSame($config->getDefaultLangcode(), 'site_default');
// Make sure there's no migration exceptions.
$messages = $this->migration->getIdMap()->getMessageIterator()->fetchAll();
$this->assertEmpty($messages);
// Assert that a content type translatable with entity_translation is still
// translatable.
$config = $this->config('language.content_settings.node.test_content_type');
$this->assertTrue($config->get('third_party_settings.content_translation.enabled'));
$this->assertSame($config->get('default_langcode'), 'und');
// Assert that a content type without a 'language_content_type' variable is
// not translatable
$config = ContentLanguageSettings::loadByEntityTypeBundle('node', 'book');
$this->assertTrue($config->isDefaultConfiguration());
$this->assertFalse($config->isLanguageAlterable());
$this->assertSame($config->getDefaultLangcode(), 'site_default');
}
}
......@@ -49585,10 +49585,6 @@
'name' => 'language_content_type_blog',
'value' => 's:1:"2";',
))
->values(array(
'name' => 'language_content_type_book',
'value' => 's:1:"0";',
))
->values(array(
'name' => 'language_content_type_forum',
'value' => 's:1:"0";',
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