Commit 50caae08 authored by catch's avatar catch

Issue #2914649 by masipila, dipakmdhrm, phenaproxima, maxocub: [D7] Vocabulary...

Issue #2914649 by masipila, dipakmdhrm, phenaproxima, maxocub: [D7] Vocabulary migration: vid incorrectly mapped from vocabulary name instead of machine_name
parent 7d63b2a2
...@@ -45383,7 +45383,7 @@ ...@@ -45383,7 +45383,7 @@
)) ))
->values(array( ->values(array(
'vid' => '4', 'vid' => '4',
'name' => 'vocabulary name much longer than thirty two characters', 'name' => 'vocabulary name clearly different than machine name and much longer than thirty two characters',
'machine_name' => 'vocabulary_name_much_longer_than_thirty_two_characters', 'machine_name' => 'vocabulary_name_much_longer_than_thirty_two_characters',
'description' => 'description of vocabulary name much longer than thirty two characters', 'description' => 'description of vocabulary name much longer than thirty two characters',
'hierarchy' => '1', 'hierarchy' => '1',
...@@ -6,11 +6,9 @@ source: ...@@ -6,11 +6,9 @@ source:
plugin: d7_taxonomy_vocabulary plugin: d7_taxonomy_vocabulary
process: process:
vid: vid:
-
plugin: machine_name
source: name
- -
plugin: make_unique_entity_field plugin: make_unique_entity_field
source: machine_name
entity_type: taxonomy_vocabulary entity_type: taxonomy_vocabulary
field: vid field: vid
length: 32 length: 32
......
...@@ -57,7 +57,7 @@ public function testTaxonomyVocabulary() { ...@@ -57,7 +57,7 @@ public function testTaxonomyVocabulary() {
$this->assertEntity('tags', 'Tags', 'Use tags to group articles on similar topics into categories.', VocabularyInterface::HIERARCHY_DISABLED, 0); $this->assertEntity('tags', 'Tags', 'Use tags to group articles on similar topics into categories.', VocabularyInterface::HIERARCHY_DISABLED, 0);
$this->assertEntity('forums', 'Sujet de discussion', 'Forum navigation vocabulary', VocabularyInterface::HIERARCHY_SINGLE, -10); $this->assertEntity('forums', 'Sujet de discussion', 'Forum navigation vocabulary', VocabularyInterface::HIERARCHY_SINGLE, -10);
$this->assertEntity('test_vocabulary', 'Test Vocabulary', 'This is the vocabulary description', VocabularyInterface::HIERARCHY_SINGLE, 0); $this->assertEntity('test_vocabulary', 'Test Vocabulary', 'This is the vocabulary description', VocabularyInterface::HIERARCHY_SINGLE, 0);
$this->assertEntity('vocabulary_name_much_longer_than', 'vocabulary name much longer than thirty two characters', 'description of vocabulary name much longer than thirty two characters', VocabularyInterface::HIERARCHY_SINGLE, 0); $this->assertEntity('vocabulary_name_much_longer_than', 'vocabulary name clearly different than machine name and much longer than thirty two characters', 'description of vocabulary name much longer than thirty two characters', VocabularyInterface::HIERARCHY_SINGLE, 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